Commit 2e98f12 1 parent 3926515 commit 2e98f12 Copy full SHA for 2e98f12
File tree 1 file changed +2
-2
lines changed
Plan/common/src/test/java/extension
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static void newTab(WebDriver driver) {
49
49
50
50
public static void waitForPageLoadForSeconds (int i , ChromeDriver driver ) {
51
51
Awaitility .await ("waitForPageLoadForSeconds" )
52
- .atMost (5 , TimeUnit .SECONDS )
52
+ .atMost (i , TimeUnit .SECONDS )
53
53
.until (() -> "complete" .equals (driver .executeScript ("return document.readyState" )));
54
54
}
55
55
@@ -92,7 +92,7 @@ private ChromeDriver getChromeWebDriver() {
92
92
// Using environment variable assumes linux
93
93
if (System .getenv (CIProperties .CHROME_DRIVER ) != null ) {
94
94
chromeOptions .setBinary ("/usr/bin/google-chrome-stable" );
95
- chromeOptions .setHeadless ( true );
95
+ chromeOptions .addArguments ( "--headless=new" );
96
96
}
97
97
98
98
return new ChromeDriver (chromeOptions );
You can’t perform that action at this time.
0 commit comments