예제 #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);
     }
 }
예제 #2
0
 public static void GoToUrl(string url)
 {
     SeleniumExecutors.Driver().Navigate().GoToUrl(url);
 }