0 votes
1 view
in Devops and Agile by (20k points)

How do you make Selenium 2.0 wait for the page to load?

1 Answer

0 votes
by (28.4k points)

IWait<IWebDriver> wait = new OpenQA.Selenium.Support.UI.WebDriverWait(driver, TimeSpan.FromSeconds(30.00));

 wait.Until(driver1 => ((IJavaScriptExecutor)driver).ExecuteScript("return document.readyState").Equals("complete"));

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...