...let John help you code



How to add Page load wait time in Selenium webdriver

Asked by:
Frank-en-teins
Feb 13, 2017, 14:54

1 Answer

Answer :
Code

Preview
 

3

You can use WebDriverWait class
 WebDriver _driver = new WebDriver();
WebDriverWait _wait = new WebDriverWait(_driver, new TimeSpan(0, 1, 0));

_wait.Until(d => d.FindElement(By.Id("Id_Your_UIElement"));

selPat