Exemple #1
0
        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());
        }
Exemple #2
0
        public void FilterFlightInFindTicketsPage()
        {
            FindTicketsPage findTicketsPage = new FindTicketsPage(driver);

            findTicketsPage.FilterFlight();
        }