From 512defb3f80429fbb1e139f07559375aac6c0a0a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 27 Jan 2024 09:49:50 +0200 Subject: [PATCH] Bump org.seleniumhq.selenium:selenium-java from 4.12.1 to 4.17.0 in /Plan (#3434) * Bump org.seleniumhq.selenium:selenium-java in /Plan Bumps [org.seleniumhq.selenium:selenium-java](https://github.com/SeleniumHQ/selenium) from 4.12.1 to 4.17.0. - [Release notes](https://github.com/SeleniumHQ/selenium/releases) - [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.17.0) --- updated-dependencies: - dependency-name: org.seleniumhq.selenium:selenium-java dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Use new headless setup method --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> --- Plan/common/build.gradle | 2 +- Plan/common/src/test/java/extension/SeleniumExtension.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plan/common/build.gradle b/Plan/common/build.gradle index 010b230f4..f30686ba0 100644 --- a/Plan/common/build.gradle +++ b/Plan/common/build.gradle @@ -94,7 +94,7 @@ dependencies { testArtifacts project(":extensions:adventure") testImplementation project(":extensions:adventure") testImplementation "com.google.code.gson:gson:$gsonVersion" - testImplementation "org.seleniumhq.selenium:selenium-java:4.12.1" + testImplementation "org.seleniumhq.selenium:selenium-java:4.17.0" testImplementation "org.testcontainers:testcontainers:$testContainersVersion" testImplementation "org.testcontainers:junit-jupiter:$testContainersVersion" testImplementation "org.testcontainers:nginx:$testContainersVersion" diff --git a/Plan/common/src/test/java/extension/SeleniumExtension.java b/Plan/common/src/test/java/extension/SeleniumExtension.java index 35ace4992..f1c95599d 100644 --- a/Plan/common/src/test/java/extension/SeleniumExtension.java +++ b/Plan/common/src/test/java/extension/SeleniumExtension.java @@ -49,7 +49,7 @@ public class SeleniumExtension implements ParameterResolver, BeforeAllCallback, public static void waitForPageLoadForSeconds(int i, ChromeDriver driver) { Awaitility.await("waitForPageLoadForSeconds") - .atMost(5, TimeUnit.SECONDS) + .atMost(i, TimeUnit.SECONDS) .until(() -> "complete".equals(driver.executeScript("return document.readyState"))); } @@ -92,7 +92,7 @@ public class SeleniumExtension implements ParameterResolver, BeforeAllCallback, // Using environment variable assumes linux if (System.getenv(CIProperties.CHROME_DRIVER) != null) { chromeOptions.setBinary("/usr/bin/google-chrome-stable"); - chromeOptions.setHeadless(true); + chromeOptions.addArguments("--headless=new"); } return new ChromeDriver(chromeOptions);