Exemplo n.º 1
0
 public void ChooseDefaultSettings()
 {
     LngElement.Click();
     EnglishLng.Click();
     //System.Threading.Thread.Sleep(1000);
     driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
     CurrencyElement.Click();
     //System.Threading.Thread.Sleep(1000);
     new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementExists(By.XPath("//*[@id='currency_dropdown_top']/ul[1]/li[1]")));
     driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
     if (!USDCurrency.GetAttribute("class").Contains("selected_currency"))
     {
         USDCurrency.Click();
     }
     else
     {
         CurrencyElement.Click();
     }
 }