Beispiel #1
0
 public static void ForElementTOBeVisible(By elementLocator, int timeout = 0)
 {
     timeout = timeout == 0 ? int.Parse(ConfigurationManager.AppSettings["waitTimeOut"]) : timeout;
     try
     {
         // SeleniumExecutors.GetWaitDriver(timeout).Until(ExpectedConditions.)
         SeleniumExecutors.GetWaitDriver(timeout).Until(ExpectedCondition.ElementIsVisble(elementLocator));
         // SeleniumExecutors.GetWaitDriver(timeout).Until(Expected)
     }
     catch (WebDriverTimeoutException e)
     {
         throw new WebDriverTimeoutException($"Element with locator:'{elementLocator}' wasn't visible within timeout limlit", e);
     }
 }
Beispiel #2
0
 public static void GoToUrl(string url)
 {
     SeleniumExecutors.Driver().Navigate().GoToUrl(url);
 }