public void TicketsToAnotherStation() { mainPage = new MainPage(Driver) .InputStationsAndSeacrh(RouteCreator.ArrivalBystationName()) .Search(); webTable = new WebTable(); Assert.IsTrue(webTable.CheckElementsFromDepartureAndArrival("//span[contains(@class,'opFromSection')]", "Manchester Piccadilly ", "Birmingham Moor Street ")); }
public void TicketsByPostCode() { Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); mainPage = new MainPage(Driver) .InputStationsAndSeacrh(RouteCreator.ArrivalByPostcode()) .Search(); webTable = new WebTable(); Assert.IsTrue(webTable.CheckElementsFromDepartureAndArrival("//span[contains(@class,'opFromSection')]", "London Blackfriars ", "Manchester Piccadilly ")); }
public void BuyingTicketWithoutSpecifyingInforamtionAboutArriveAndDepartue() { Browser.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); FromToStations fromToStations = new FromToStations(Browser).InputStations("Manchester", "London Blackfriars"); ConfirmSelectionCriteria confirmSelectionCriteria = new ConfirmSelectionCriteria(Browser).ClickSearchButton(); webTable = new WebTable(); Assert.IsTrue(webTable.CheckElementsFromDepartureAndArrival("//span[contains(@class,'opFromSection')]", "Manchester Piccadilly", "London Blackfriars")); }
public void TwoWayTickets() { Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); mainPage = new MainPage(Driver) .InputStationsAndSeacrh(RouteCreator.WithAllProperties()) .OpenCloseAdditionalCriterias() .SwitchReturn() .Search(); webTable = new WebTable(); Assert.IsTrue(webTable.CheckElementsFromDepartureAndArrival("//span[contains(@class,'opFromSection')]", "London Blackfriars ", "Manchester Piccadilly ")); }
public void TakeJourneyFromRecent() { Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); mainPage = new MainPage(Driver) .InputStationsAndSeacrh(RouteCreator.WithAllProperties()) .Search() .BackToHome() .GetRecentTrain(); webTable = new WebTable(); Assert.IsTrue(webTable.CheckElementsFromDepartureAndArrival("//span[contains(@class,'opFromSection')]", "London Blackfriars ", "Manchester Piccadilly ")); }