Example #1
0
        public void Search_Tickets_For_Two_From_Minsk_To_Moskva()
        {
            webDriver = new ChromeDriver();
            webDriver.Manage().Window.Maximize();
            webDriver.Navigate().GoToUrl("https://www.ufs-online.ru/");
            webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            MainPage    mainPage       = new MainPage(webDriver).SearchTickets("Минск", "Москва");
            TicketPrice seatOnTheTrain = new TicketPrice(webDriver).ClickReservedTicketButton();
            Passengers  passengers     = new Passengers(webDriver).NumberOfAdultPlacesClick();

            Assert.AreEqual("2", passengers.chekNumberOfPassenger.Text);
            //webDriver.Quit();
        }
Example #2
0
        public void Order_Ticket_From_Minsk_To_Moskva_With_An_Email()
        {
            webDriver = new ChromeDriver();
            webDriver.Manage().Window.Maximize();
            webDriver.Navigate().GoToUrl("https://www.ufs-online.ru/");
            webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            MainPage       mainPage       = new MainPage(webDriver).SearchTickets("Минск", "Москва");
            TicketPrice    seatOnTheTrain = new TicketPrice(webDriver).ClickReservedTicketButton();
            Place          place          = new Place(webDriver).ClickSetSelection();
            AboutPassenger aboutPassenger = new AboutPassenger(webDriver).EnterEmail("*****@*****.**");

            Assert.AreEqual("*****@*****.**", aboutPassenger.chekEnterEmail.Text);
            webDriver.Quit();
        }