public void WhenIEnterAValidPostcode() { AddVenueManualAddressPage AddVenueManualAddressPage = new AddVenueManualAddressPage(webDriver); Venue_Data VenueData = new Venue_Data(); AddVenueManualAddressPage.AddPostCode(VenueData.PostCode); }
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); }
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 WhenIEnterTheFollowingPostCode(string postcode) { AddVenueManualAddressPage AddVenueManualAddressPage = new AddVenueManualAddressPage(webDriver); AddVenueManualAddressPage.AddPostCode(postcode); }
public void WhenILeavePostCodeAsBlank() { AddVenueManualAddressPage AddVenueManualAddressPage = new AddVenueManualAddressPage(webDriver); AddVenueManualAddressPage.AddPostCode(""); }