public void DirectFlight() { StartPage startPage = new StartPage(); startPage.FillInForm("Минск", "Париж"); FindTicketsPage findTicketsPage = new FindTicketsPage(startPage.getDriver()); findTicketsPage.FilterFlight(); SoftAssert ticketsWithDirectFligtAssert = new SoftAssert(); foreach (IWebElement elem in ticketsDirectFlight) { ticketsWithDirectFligtAssert.IsTrue(elem.Displayed && !elem.Text.Contains("ПРЯМОЙ ПЕРЕЛЁТ")); } ticketsWithDirectFligtAssert.VerifyAll(); Browser.CloseBrowser(findTicketsPage.getDriver()); }
public void FilterFlightInFindTicketsPage() { FindTicketsPage findTicketsPage = new FindTicketsPage(driver); findTicketsPage.FilterFlight(); }