[java-idp-integration-tests] branch main updated: Bump Selenium
Tom Zeller
tzeller at dragonacea.biz
Thu Dec 28 13:50:41 UTC 2023
This is an automated email from the git hooks/post-receive script.
tzeller pushed a commit to branch main
in repository java-idp-integration-tests.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=eab20e24ff76e9d6c6eab412a5906d8574ab8b1e
The following commit(s) were added to refs/heads/main by this push:
new eab20e2 Bump Selenium
eab20e2 is described below
commit eab20e24ff76e9d6c6eab412a5906d8574ab8b1e
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Thu Dec 28 07:50:31 2023 -0600
Bump Selenium
---
pom.xml | 2 +-
.../shibboleth/idp/integration/tests/BaseIntegrationTest.java | 10 ++++------
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/pom.xml b/pom.xml
index 3bc7567..27a2795 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,7 +40,7 @@
<!-- OpenSAML -->
<opensaml.version>5.1.0-SNAPSHOT</opensaml.version>
- <selenium.version>4.7.2</selenium.version>
+ <selenium.version>4.16.1</selenium.version>
<test-distributions.directory>${project.basedir}/test-distributions</test-distributions.directory>
<idp-to-be-tested.directory>${test-distributions.directory}/shibboleth-identity-provider-${idp-to-be-tested.version}</idp-to-be-tested.directory>
diff --git a/src/test/java/net/shibboleth/idp/integration/tests/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/integration/tests/BaseIntegrationTest.java
index 9fda142..88f1a3b 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/BaseIntegrationTest.java
@@ -1540,9 +1540,8 @@ public abstract class BaseIntegrationTest {
public void setUpChromeDriver() throws IOException {
final ChromeOptions options = new ChromeOptions();
options.setAcceptInsecureCerts(true);
- options.setHeadless(true);
- if (Boolean.getBoolean("no-headless")) {
- options.setHeadless(false);
+ if (!Boolean.getBoolean("no-headless")) {
+ options.addArguments("--headless=new");
}
driver = new ChromeDriver(options);
driver.manage().window().setPosition(new Point(0, 0));
@@ -1557,9 +1556,8 @@ public abstract class BaseIntegrationTest {
public void setUpFirefoxDriver() throws IOException {
final FirefoxOptions options = new FirefoxOptions();
options.setAcceptInsecureCerts(true);
- options.setHeadless(true);
- if (Boolean.getBoolean("no-headless")) {
- options.setHeadless(false);
+ if (!Boolean.getBoolean("no-headless")) {
+ options.addArguments("--headless");
}
options.addPreference("devtools.jsonview.enabled", false);
driver = new FirefoxDriver(options);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list