Closed kazurayam closed 2 years ago
I do not really understand how the implicit wait works.
The following snippet would be better to make sure page is loaded and ready
void waitForLoad(WebDriver driver) {
new WebDriverWait(driver, 30).until((ExpectedCondition<Boolean>) wd ->
((JavascriptExecutor) wd).executeScript("return document.readyState").equals("complete"));
}
Quote from https://stackoverflow.com/questions/15122864/selenium-wait-until-document-is-ready
I should not use the Implicit wait.
I should rather use pageLoadTimeout()
I need a new method