Open helkv opened 6 years ago
General Waiting-Approaches proofed to be successful:
WebElement elementToBecomeStale = driver.findelement(...);
buttonElement.click()
wait.until(ExpectedConditions.stalenessOf(elementToBecomeStale));
wait.until(webDriver -> ((JavascriptExecutor) webDriver).executeScript("return document.readyState").equals("complete"));
wait.until(ExpectedConditions.elementToBeClickable(element));
wait.until(ExpectedConditions.visibilityOf(element));
When a new page is loaded and after certain actions the test-execution has to wait until all needed web-elements are present in the DOM. Sometimes a loading screen (.loaderWrapper) is displayed.
Actual Approach:
Problems:
TODO: