mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-24 17:11:43 +01:00
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] <support@github.com> * Use new headless setup method --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com>
This commit is contained in:
parent
89355d4975
commit
512defb3f8
@ -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"
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user