Guest User

Untitled

a guest
Mar 17th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public void WaitTillElementIsReady(By locator)
  2. {
  3. IWait<IWebDriver> wait = new WebDriverWait(_seleniumWebDriver, TimeSpan.FromSeconds(10));
  4. wait.Until(ExpectedConditions.VisibilityOfAllElementsLocatedBy(locator));
  5. wait.Until(ExpectedConditions.ElementIsVisible(locator));
  6. wait.Until(ExpectedConditions.ElementExists(locator));
  7. wait.Until(ExpectedConditions.ElementToBeClickable(locator));
  8. }
Add Comment
Please, Sign In to add comment