We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25f911c commit 429405eCopy full SHA for 429405e
src/main/java/org/htmlunit/WebClientUtil.java
@@ -54,7 +54,7 @@ public static void waitForJSExec(WebClient webClient) {
54
*/
55
public static void waitForJSExec(WebClient webClient, long timeout) {
56
webClient.getJavaScriptEngine().processPostponedActions();
57
- webClient.waitForBackgroundJavaScript(timeout);
+ webClient.waitForBackgroundJavaScriptStartingBefore(2_000, timeout);
58
}
59
60
/**
0 commit comments