Skip to content

Commit 2e98f12

Browse files
committed
Use new headless setup method
1 parent 3926515 commit 2e98f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plan/common/src/test/java/extension/SeleniumExtension.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void newTab(WebDriver driver) {
4949

5050
public static void waitForPageLoadForSeconds(int i, ChromeDriver driver) {
5151
Awaitility.await("waitForPageLoadForSeconds")
52-
.atMost(5, TimeUnit.SECONDS)
52+
.atMost(i, TimeUnit.SECONDS)
5353
.until(() -> "complete".equals(driver.executeScript("return document.readyState")));
5454
}
5555

@@ -92,7 +92,7 @@ private ChromeDriver getChromeWebDriver() {
9292
// Using environment variable assumes linux
9393
if (System.getenv(CIProperties.CHROME_DRIVER) != null) {
9494
chromeOptions.setBinary("/usr/bin/google-chrome-stable");
95-
chromeOptions.setHeadless(true);
95+
chromeOptions.addArguments("--headless=new");
9696
}
9797

9898
return new ChromeDriver(chromeOptions);

0 commit comments

Comments
 (0)