Ejemplo n.º 1
0
 public static void ForElementToBeVisible(By elementLocator, int timeout = 0)
 {
     timeout = timeout == 0 ? int.Parse(ConfigurationManager.AppSettings["waitTimeout"]) : timeout;
     try
     {
         SeleniumExecutor.GetWaitDriver(timeout).Until(ExpectedConditions.ElementIsVisible(elementLocator));
     }
     catch (WebDriverTimeoutException e)
     {
         throw new WebDriverTimeoutException($"Element with Locator:'{elementLocator}'wasn't visible within timeout limit", e)
     }
 }
Ejemplo n.º 2
0
 public static void GoToUrl(string url)
 {
     SeleniumExecutor.Driver().Navigate().GoToUrl(url);
 }