KEYCLOAK-10753 Possibility for JavascriptExecutor to use the timeout from pageload.timeout property instead of hardcoded
This commit is contained in:
parent
91b41b1a2e
commit
c003dabf6c
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ package org.keycloak.testsuite.util.javascript;
|
|||
|
||||
import org.keycloak.representations.idm.UserRepresentation;
|
||||
import org.keycloak.testsuite.auth.page.login.OIDCLogin;
|
||||
import org.keycloak.testsuite.util.WaitUtils;
|
||||
import org.openqa.selenium.By;
|
||||
import org.openqa.selenium.JavascriptExecutor;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
|
@ -29,7 +30,7 @@ public class JavascriptTestExecutor {
|
|||
|
||||
protected JavascriptTestExecutor(WebDriver driver, OIDCLogin loginPage) {
|
||||
this.jsDriver = driver;
|
||||
driver.manage().timeouts().setScriptTimeout(10, TimeUnit.SECONDS);
|
||||
driver.manage().timeouts().setScriptTimeout(WaitUtils.PAGELOAD_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);
|
||||
jsExecutor = (JavascriptExecutor) driver;
|
||||
events = driver.findElement(By.id("events"));
|
||||
output = driver.findElement(By.id("output"));
|
||||
|
|
Loading…
Reference in a new issue