Пример #1
0
 public TypeTrainPage ClickTypeTrain()
 {
     new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//*[@id='ufs-railway-app']/div/div[2]/div[2]/div[4]/div/div[3]/div/div[4]")));
     TypeButton.Click();
     new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//*[@id='ufs-railway-app']/div/div[2]/div[2]/div[4]/div/div[5]/div[3]/button")));
     NextButton.Click();
     new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//*[@id='ufs-railway-app']/div/div[2]/div[2]/div[4]/div/div[5]/div[2]/span/span")));
     return(this);
 }
Пример #2
0
 public TypeTrainPage ClickTypeTrain()
 {
     new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//div[@class='wg-wagon-type']/div[1]")));
     TypeButton.Click();
     new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//button[@class='wg-button']")));
     NextButton.Click();
     new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementIsVisible(By.XPath("//span[@class='wg-block__section-label t_error']/span")));
     return(this);
 }