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); } }
public bool CheckPassengerCount(int passCount) { Pages.OrderPage orderPage = new Pages.OrderPage(driver); return(orderPage.CheckPassengerCount(passCount)); }
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)); }