From b8122709a359016cefe9b77fd9f81c48e127caf9 Mon Sep 17 00:00:00 2001 From: Jumper Chen Date: Thu, 7 Dec 2023 12:52:23 +0800 Subject: [PATCH] Upgrade to selenium version 4.16.1 --- gradle.properties | 4 ++-- .../java/org/zkoss/test/webdriver/ChromiumHeadlessDriver.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 3ebacba..fb05e05 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,8 +1,8 @@ -version=1.0.12.1 +version=1.4.16.1.0 # dependencies junitVersion=5.10.0 -seleniumVersion=4.11.0 +seleniumVersion=4.16.1 dockerJunitVersion=2.0.0 webdrivermanagerVersion=5.4.1 hamcrestVersion=2.2 diff --git a/src/main/java/org/zkoss/test/webdriver/ChromiumHeadlessDriver.java b/src/main/java/org/zkoss/test/webdriver/ChromiumHeadlessDriver.java index 5e88e2a..9828d8c 100755 --- a/src/main/java/org/zkoss/test/webdriver/ChromiumHeadlessDriver.java +++ b/src/main/java/org/zkoss/test/webdriver/ChromiumHeadlessDriver.java @@ -61,7 +61,7 @@ public ChromiumHeadlessDriver(ChromeDriverService service, ChromeOptions options } private static ChromeOptions headlessSettings(ChromeOptions options, boolean headless) { - options.setHeadless(headless); + options.addArguments("--headless=new"); return options; } }