Example #1
0
 public SearchingTrainResultsPage BuyButtonClick()
 {
     wait.Until(e => e.FindElement(By.ClassName("preloader_light")).GetAttribute("style") == "display: none;");
     Waiter.WaitForAjax(driver);
     BuyButton.Click();
     return(this);
 }
Example #2
0
 public TypeTrainPage ClickBuyFirstTicket()
 {
     new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//div[@class='route_block']/div[@class='buy_button']")));
     BuyButton.Click();
     return(new TypeTrainPage(driver));
 }
Example #3
0
 public ListTicketsPage ClickBuyFirstTicket()
 {
     new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//DIV[@class='route_block']/div[4]")));
     BuyButton.Click();
     return(this);
 }