Blog

Wait for page load in Selenium (Java)

To wait until the page is loaded, the easiest way is to use a WebDriverWait to force the driver to wait until an element is visible that you know is only present on the page you are navigating to.You can do this using WebDriverWait, a class that is used in conjunction with ExpectedConditions to wait for a certain condition to be met.

Pages