File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ dependencies {
94
94
testArtifacts project(" :extensions:adventure" )
95
95
testImplementation project(" :extensions:adventure" )
96
96
testImplementation " com.google.code.gson:gson:$gsonVersion "
97
- testImplementation " org.seleniumhq.selenium:selenium-java:4.12.1 "
97
+ testImplementation " org.seleniumhq.selenium:selenium-java:4.17.0 "
98
98
testImplementation " org.testcontainers:testcontainers:$testContainersVersion "
99
99
testImplementation " org.testcontainers:junit-jupiter:$testContainersVersion "
100
100
testImplementation " org.testcontainers:nginx:$testContainersVersion "
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