public SearchingTrainResultsPage BuyButtonClick() { wait.Until(e => e.FindElement(By.ClassName("preloader_light")).GetAttribute("style") == "display: none;"); Waiter.WaitForAjax(driver); BuyButton.Click(); return(this); }
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)); }
public ListTicketsPage ClickBuyFirstTicket() { new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//DIV[@class='route_block']/div[4]"))); BuyButton.Click(); return(this); }