Does anyone know how to make selenium wait until the page loads completely? I want something simple which can be used else where also because I'm not a very technical person and I have like 1000 pages to test. So probably need to wait for sometime and move to test the next page.
So I got something in .net. But I want something similar for Java.
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"));
Any thoughts anyone?