public void WhenIEnterTownOrCity()
        {
            AddVenueManualAddressPage AddVenueManualAddressPage = new AddVenueManualAddressPage(webDriver);
            Venue_Data VenueData = new Venue_Data();

            AddVenueManualAddressPage.AddTownCity(VenueData.TownCity);
        }
        public void GivenIHaveSearchedFor(string strVenueName)
        {
            DeleteVenuePage deleteVenuePage = new DeleteVenuePage(webDriver);

            if (deleteVenuePage.CheckVenuePresent(strVenueName) == false)
            {
                ViewAllLiveVenuesPage viewAllLiveVenuesPage = new ViewAllLiveVenuesPage(webDriver);
                viewAllLiveVenuesPage.ClickAddVenueButton();
                AddVenuePage addVenuePage = new AddVenuePage(webDriver);
                addVenuePage.ClickEnterAddressManuallyLink();
                AddVenueManualAddressPage addVenueManualAddressPage = new AddVenueManualAddressPage(webDriver);
                addVenueManualAddressPage.AddVenueName(strVenueName);
                addVenueManualAddressPage.AddAddressLine1("Line 1 Del Venue");
                addVenueManualAddressPage.AddTownCity("Del Venue City");
                addVenueManualAddressPage.AddPostCode("CV1 2WT");
                addVenueManualAddressPage.ClickContinue();
                AddVenueConfirmAddressPage addVenueConfirmAddressPage = new AddVenueConfirmAddressPage(webDriver);
                addVenueConfirmAddressPage.ClickContinue();
            }
            // deleteVenuePage.CheckVenuePresent(strVenueName);
        }
Example #3
0
        public void GivenIHaveAddedANewVenue(string strVenueName)
        {
            // create unique venue name and store in scenrio context to re-use later
            strVenueName = strVenueName + DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss");
            ScenarioContext.Current["venue name"] = strVenueName;

            AddVenuePage addVenuePage = new AddVenuePage(webDriver);

            addVenuePage.ClickEnterAddressManuallyLink();
            AddVenueManualAddressPage addVenueManualAddressPage = new AddVenueManualAddressPage(webDriver);

            addVenueManualAddressPage.AddVenueName(strVenueName);
            addVenueManualAddressPage.AddAddressLine1("Line 1 Del Venue");
            addVenueManualAddressPage.AddTownCity("Del Venue City");
            addVenueManualAddressPage.AddPostCode("CV1 2WT");
            addVenueManualAddressPage.ClickContinue();
            PageInteractionHelper.WaitForPageToLoad();
            AddVenueConfirmAddressPage addVenueConfirmAddressPage = new AddVenueConfirmAddressPage(webDriver);

            addVenueConfirmAddressPage.ClickConfirmContinue();
        }
        public void WhenILeaveTownOrCityAsBlank()
        {
            AddVenueManualAddressPage AddVenueManualAddressPage = new AddVenueManualAddressPage(webDriver);

            AddVenueManualAddressPage.AddTownCity("");
        }