Esempio n. 1
0
        public bool IsErrorOnSubmitOrder()
        {
            Pages.OrderPage     orderPage = new Pages.OrderPage(driver);
            Actions             actions   = new Actions(driver);
            IJavaScriptExecutor jse       = (IJavaScriptExecutor)driver;

            jse.ExecuteScript("scroll(0, 1500)");
            actions.MoveToElement(orderPage.SubmitOrder).Click().Perform();
            try
            {
                driver.FindElement(By.XPath("//button[@class='swal2-confirm swal2-styled']"));
                return(true);
            }
            catch
            {
                return(false);
            }
        }
Esempio n. 2
0
 public bool CheckPassengerCount(int passCount)
 {
     Pages.OrderPage orderPage = new Pages.OrderPage(driver);
     return(orderPage.CheckPassengerCount(passCount));
 }
Esempio n. 3
0
 public void ValidateOrderInputData(string date, string cityFrom, string cityTo, int price, string time)
 {
     Pages.OrderPage orderPage = new Pages.OrderPage(driver);
     Assert.IsTrue(orderPage.ValidateOrderInputData(cityFrom, cityTo, price, time, date));
 }