WebDriver automatically waits for the page to load. Of course your idea of the page loading may be different to WebDriver’s so the best thing to do is put in an explicit wait for a know element to appear if you are having problems.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/BHH40pUPNlcJ.
For more options, visit https://groups.google.com/groups/opt_out.
Assuming you are using Java you can use the WebDriverWait class with ExpectedConditions:
//Wait up to 10 seconds for a condition
WebDriverWait waiting = new WebDriverWait(driver, 10);
waiting.until(ExpectedConditions.presenceOfElementLocated(By.id("myElement")));
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/N0y4kjTcNK4J.