Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 49cf8bf

Browse files
committed
deps: update dependencies
1 parent 5076343 commit 49cf8bf

File tree

5 files changed

+57
-48
lines changed

5 files changed

+57
-48
lines changed

DEPENDENCIES.md

-6 KB
[INFO] Scanning for projects...
[INFO] 
[INFO] -------< com.github.marketsquare:robotframework-seleniumlibrary >-------
[INFO] Building Robot Framework :: SeleniumLibrary 4.28.1.0
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Building Robot Framework :: SeleniumLibrary 2.53.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- dependency:3.7.0:tree (default-cli) @ robotframework-seleniumlibrary ---
[INFO] com.github.marketsquare:robotframework-seleniumlibrary:jar:4.28.1.0
[INFO] +- org.robotframework:javalib-core:jar:2.0.3:compile
[INFO] |  \- org.apache.commons:commons-collections4:jar:4.4:compile
[INFO] +- org.robotframework:robotframework:jar:4.1.2:compile
[INFO] +- org.seleniumhq.selenium:selenium-java:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-api:jar:4.28.1:compile
[INFO] |  |  \- org.jspecify:jspecify:jar:1.0.0:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-chrome-driver:jar:4.28.1:compile
[INFO] |  |  +- com.google.auto.service:auto-service-annotations:jar:1.1.1:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-chromium-driver:jar:4.28.1:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-json:jar:4.28.1:compile
[INFO] |  |  \- org.seleniumhq.selenium:selenium-manager:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-devtools-v130:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-devtools-v131:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-devtools-v132:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-devtools-v85:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-edge-driver:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-firefox-driver:jar:4.28.1:compile
[INFO] |  |  \- org.seleniumhq.selenium:selenium-http:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-ie-driver:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-remote-driver:jar:4.28.1:compile
[INFO] |  |  +- com.google.guava:guava:jar:33.4.0-jre:compile
[INFO] |  |  |  +- com.google.guava:failureaccess:jar:1.0.2:compile
[INFO] |  |  |  +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] |  |  |  +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] |  |  |  +- org.checkerframework:checker-qual:jar:3.43.0:compile
[INFO] |  |  |  \- com.google.j2objc:j2objc-annotations:jar:3.0.0:compile
[INFO] |  |  +- io.opentelemetry.semconv:opentelemetry-semconv:jar:1.28.0-alpha:compile
[INFO] |  |  +- io.opentelemetry:opentelemetry-api:jar:1.46.0:compile
[INFO] |  |  +- io.opentelemetry:opentelemetry-context:jar:1.46.0:compile
[INFO] |  |  +- io.opentelemetry:opentelemetry-exporter-logging:jar:1.46.0:compile
[INFO] |  |  +- io.opentelemetry:opentelemetry-sdk-common:jar:1.46.0:compile
[INFO] |  |  +- io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:jar:1.46.0:compile
[INFO] |  |  +- io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:jar:1.46.0:compile
[INFO] |  |  |  \- io.opentelemetry:opentelemetry-api-incubator:jar:1.46.0-alpha:runtime
[INFO] |  |  +- io.opentelemetry:opentelemetry-sdk-trace:jar:1.46.0:compile
[INFO] |  |  +- io.opentelemetry:opentelemetry-sdk:jar:1.46.0:compile
[INFO] |  |  |  +- io.opentelemetry:opentelemetry-sdk-metrics:jar:1.46.0:compile
[INFO] |  |  |  \- io.opentelemetry:opentelemetry-sdk-logs:jar:1.46.0:compile
[INFO] |  |  \- org.seleniumhq.selenium:selenium-os:jar:4.28.1:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-safari-driver:jar:4.28.1:compile
[INFO] |  \- org.seleniumhq.selenium:selenium-support:jar:4.28.1:compile
[INFO] +- org.aspectj:aspectjrt:jar:1.9.21.2:compile
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) @ robotframework-seleniumlibrary ---
[INFO] com.github.hi-fi:robotframework-seleniumlibrary:jar:2.53.1.0-SNAPSHOT
[INFO] +- org.robotframework:javalib-core:jar:1.2.1:compile
[INFO] |  +- commons-collections:commons-collections:jar:3.2:compile
[INFO] |  \- com.thoughtworks.paranamer:paranamer:jar:1.1.2:compile
[INFO] +- com.github.markusbernhardt:xml-doclet:jar:1.0.5:compile
[INFO] |  +- com.sun:tools:jar:1.7:system
[INFO] |  +- commons-cli:commons-cli:jar:1.2:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.12:compile
[INFO] +- org.seleniumhq.selenium:selenium-server:jar:2.53.1:compile
[INFO] |  +- com.beust:jcommander:jar:1.48:compile
[INFO] |  +- org.bouncycastle:bcprov-jdk15on:jar:1.48:compile
[INFO] |  +- org.bouncycastle:bcpkix-jdk15on:jar:1.48:compile
[INFO] |  +- mx4j:mx4j-tools:jar:3.0.1:compile
[INFO] |  +- org.seleniumhq.selenium:jetty-repacked:jar:9.2.13.v20150730:compile
[INFO] |  +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] |  +- org.seleniumhq.selenium:jetty-rc-repacked:jar:5:compile
[INFO] |  +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.53.1:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.53.1:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-edge-driver:jar:2.53.1:compile
[INFO] |  |  +- org.seleniumhq.selenium:htmlunit-driver:jar:2.21:compile
[INFO] |  |  |  \- net.sourceforge.htmlunit:htmlunit:jar:2.21:compile
[INFO] |  |  |     +- xalan:xalan:jar:2.7.2:compile
[INFO] |  |  |     |  \- xalan:serializer:jar:2.7.2:compile
[INFO] |  |  |     +- org.apache.httpcomponents:httpmime:jar:4.5.2:compile
[INFO] |  |  |     +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.17:compile
[INFO] |  |  |     +- net.sourceforge.htmlunit:neko-htmlunit:jar:2.21:compile
[INFO] |  |  |     |  \- xerces:xercesImpl:jar:2.11.0:compile
[INFO] |  |  |     |     \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] |  |  |     +- net.sourceforge.cssparser:cssparser:jar:0.9.18:compile
[INFO] |  |  |     |  \- org.w3c.css:sac:jar:1.3:compile
[INFO] |  |  |     \- org.eclipse.jetty.websocket:websocket-client:jar:9.2.15.v20160210:compile
[INFO] |  |  |        +- org.eclipse.jetty:jetty-util:jar:9.2.15.v20160210:compile
[INFO] |  |  |        +- org.eclipse.jetty:jetty-io:jar:9.2.15.v20160210:compile
[INFO] |  |  |        \- org.eclipse.jetty.websocket:websocket-common:jar:9.2.15.v20160210:compile
[INFO] |  |  |           \- org.eclipse.jetty.websocket:websocket-api:jar:9.2.15.v20160210:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.53.1:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.53.1:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.53.1:compile
[INFO] |  |  |  \- io.netty:netty:jar:3.5.7.Final:compile
[INFO] |  |  +- org.seleniumhq.selenium:selenium-support:jar:2.53.1:compile
[INFO] |  |  \- org.seleniumhq.selenium:selenium-leg-rc:jar:2.53.1:compile
[INFO] |  +- org.yaml:snakeyaml:jar:1.8:compile
[INFO] |  \- commons-codec:commons-codec:jar:1.10:compile
[INFO] +- com.opera:operadriver:jar:1.5:compile
[INFO] |  +- com.opera:operalaunchers:jar:1.1:compile
[INFO] |  +- com.google.protobuf:protobuf-java:jar:2.4.1:compile
[INFO] |  +- com.google.guava:guava:jar:14.0:compile
[INFO] |  +- commons-jxpath:commons-jxpath:jar:1.3:compile
[INFO] |  \- org.ini4j:ini4j:jar:0.5.2:compile
[INFO] +- com.codeborne:phantomjsdriver:jar:1.4.3:compile
[INFO] |  +- org.seleniumhq.selenium:selenium-api:jar:3.4.0:compile
[INFO] |  \- org.seleniumhq.selenium:selenium-remote-driver:jar:3.4.0:compile
[INFO] |     +- commons-logging:commons-logging:jar:1.2:compile
[INFO] |     +- org.apache.httpcomponents:httpcore:jar:4.4.6:compile
[INFO] |     +- net.java.dev.jna:jna:jar:4.1.0:compile
[INFO] |     \- net.java.dev.jna:jna-platform:jar:4.1.0:compile
[INFO] +- org.robotframework:robotframework:jar:3.0.2:compile
[INFO] +- org.aspectj:aspectjrt:jar:1.8.7:compile
[INFO] +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] |  \- junit:junit:jar:4.10:compile
[INFO] |     \- org.hamcrest:hamcrest-core:jar:1.1:compile
[INFO] +- io.appium:java-client:jar:9.4.0:provided
[INFO] |  +- com.google.code.gson:gson:jar:2.11.0:compile
[INFO] |  |  \- com.google.errorprone:error_prone_annotations:jar:2.27.0:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:2.0.16:compile
[INFO] +- org.apache.commons:commons-exec:jar:1.4.0:compile
[INFO] +- org.seleniumhq.selenium:htmlunit-driver:jar:4.13.0:compile
[INFO] |  \- net.sourceforge.htmlunit:htmlunit:jar:2.70.0:compile
[INFO] |     +- org.apache.httpcomponents:httpmime:jar:4.5.14:compile
[INFO] |     |  \- org.apache.httpcomponents:httpclient:jar:4.5.14:compile
[INFO] |     |     \- org.apache.httpcomponents:httpcore:jar:4.4.16:compile
[INFO] |     +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.70.0:compile
[INFO] |     +- net.sourceforge.htmlunit:neko-htmlunit:jar:2.70.0:compile
[INFO] |     +- net.sourceforge.htmlunit:htmlunit-cssparser:jar:1.14.0:compile
[INFO] |     +- net.sourceforge.htmlunit:htmlunit-xpath:jar:2.70.0:compile
[INFO] |     +- org.apache.commons:commons-text:jar:1.10.0:compile
[INFO] |     +- commons-io:commons-io:jar:2.10.0:compile
[INFO] |     +- commons-logging:commons-logging:jar:1.2:compile
[INFO] |     +- commons-net:commons-net:jar:3.9.0:compile
[INFO] |     +- commons-codec:commons-codec:jar:1.15:compile
[INFO] |     +- com.shapesecurity:salvation2:jar:3.0.1:compile
[INFO] |     \- org.eclipse.jetty.websocket:websocket-client:jar:9.4.50.v20221201:compile
[INFO] |        +- org.eclipse.jetty:jetty-client:jar:9.4.50.v20221201:compile
[INFO] |        |  \- org.eclipse.jetty:jetty-http:jar:9.4.50.v20221201:compile
[INFO] |        +- org.eclipse.jetty:jetty-util:jar:9.4.50.v20221201:compile
[INFO] |        +- org.eclipse.jetty:jetty-io:jar:9.4.50.v20221201:compile
[INFO] |        \- org.eclipse.jetty.websocket:websocket-common:jar:9.4.50.v20221201:compile
[INFO] |           \- org.eclipse.jetty.websocket:websocket-api:jar:9.4.50.v20221201:compile
[INFO] +- org.mockito:mockito-core:jar:5.15.2:test
[INFO] |  +- net.bytebuddy:byte-buddy:jar:1.15.11:compile
[INFO] |  +- net.bytebuddy:byte-buddy-agent:jar:1.15.11:test
[INFO] |  \- org.objenesis:objenesis:jar:3.3:test
[INFO] +- io.github.bonigarcia:webdrivermanager:jar:5.7.0:compile
[INFO] |  +- com.github.docker-java:docker-java:jar:3.3.5:compile
[INFO] |  |  +- com.github.docker-java:docker-java-core:jar:3.3.5:compile
[INFO] |  |  |  +- com.github.docker-java:docker-java-api:jar:3.3.5:compile
[INFO] |  |  |  |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.3:compile
[INFO] |  |  |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile
[INFO] |  |  |  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile
[INFO] |  |  |  \- org.bouncycastle:bcpkix-jdk18on:jar:1.76:compile
[INFO] |  |  |     +- org.bouncycastle:bcprov-jdk18on:jar:1.76:compile
[INFO] |  |  |     \- org.bouncycastle:bcutil-jdk18on:jar:1.76:compile
[INFO] |  |  \- org.slf4j:jcl-over-slf4j:jar:1.7.30:compile
[INFO] |  +- com.github.docker-java:docker-java-transport-httpclient5:jar:3.3.5:compile
[INFO] |  |  +- com.github.docker-java:docker-java-transport:jar:3.3.5:compile
[INFO] |  |  \- net.java.dev.jna:jna:jar:5.13.0:compile
[INFO] |  +- org.brotli:dec:jar:0.1.2:compile
[INFO] |  +- org.apache.commons:commons-compress:jar:1.26.0:compile
[INFO] |  \- org.apache.httpcomponents.client5:httpclient5:jar:5.2.1:compile
[INFO] |     +- org.apache.httpcomponents.core5:httpcore5:jar:5.2:compile
[INFO] |     \- org.apache.httpcomponents.core5:httpcore5-h2:jar:5.2:compile
[INFO] \- org.apache.commons:commons-lang3:jar:3.17.0:compile
[INFO] +- io.selendroid:selendroid-client:jar:0.17.0:compile
[INFO] |  +- io.selendroid:selendroid-common:jar:0.17.0:compile
[INFO] |  |  \- org.json:json:jar:20090211:compile
[INFO] |  \- io.selendroid:selendroid-server-common:jar:0.17.0:compile
[INFO] |     \- io.netty:netty-all:jar:4.0.21.Final:compile
[INFO] +- io.appium:java-client:jar:4.1.2:compile
[INFO] |  +- com.google.code.gson:gson:jar:2.7:compile
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] |  +- commons-validator:commons-validator:jar:1.5.1:compile
[INFO] |  |  +- commons-beanutils:commons-beanutils:jar:1.9.2:compile
[INFO] |  |  \- commons-digester:commons-digester:jar:1.8.1:compile
[INFO] |  +- org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] |  +- cglib:cglib-nodep:jar:3.2.4:compile
[INFO] |  +- org.springframework:spring-context:jar:4.3.2.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-aop:jar:4.3.2.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-beans:jar:4.3.2.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-core:jar:4.3.2.RELEASE:compile
[INFO] |  |  \- org.springframework:spring-expression:jar:4.3.2.RELEASE:compile
[INFO] |  \- org.aspectj:aspectjweaver:jar:1.8.9:compile
[INFO] +- org.apache.commons:commons-exec:jar:1.3:compile
[INFO] \- com.machinepublishers:jbrowserdriver:jar:0.17.9:compile
[INFO]    +- org.apache.httpcomponents:httpclient-cache:jar:4.5.2:compile
[INFO]    +- org.zeroturnaround:zt-process:jar:1.3:compile
[INFO]    |  +- org.zeroturnaround:zt-exec:jar:1.7:compile
[INFO]    |  +- com.sun.jna:jna:jar:3.0.9:compile
[INFO]    |  +- commons-lang:commons-lang:jar:2.6:compile
[INFO]    |  \- commons-io:commons-io:jar:2.2:compile
[INFO]    \- io.github.lukehutch:fast-classpath-scanner:jar:2.0.16:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.551 s
[INFO] Finished at: 2025-01-25T16:43:44+02:00
[INFO] Total time: 1.431 s
[INFO] Finished at: 2017-09-18T21:42:32+03:00
[INFO] Final Memory: 14M/491M
[INFO] ------------------------------------------------------------------------

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ your pom.xml:
1818
<dependency>
1919
<groupId>com.github.marketsquare</groupId>
2020
<artifactId>robotframework-seleniumlibrary</artifactId>
21-
<version>4.0.0.0</version>
21+
<version>4.28.1.0</version>
2222
<scope>test</scope>
2323
</dependency>
2424

2525
If you cannot use the robotframework-maven-plugin you can use the
26-
[jar-with-dependencies](https://repo1.maven.org/maven2/com/github/marketsquare/robotframework-seleniumlibrary/4.0.0.0/robotframework-seleniumlibrary-4.0.0.0-jar-with-dependencies.jar),
27-
which contains all required libraries except ios/android ones (Appium and Selendroid). Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-4.0.0.0-jar-with-dependencies.jar <test location>`.
26+
[jar-with-dependencies](https://repo1.maven.org/maven2/com/github/marketsquare/robotframework-seleniumlibrary/4.28.1.0/robotframework-seleniumlibrary-4.28.1.0-jar-with-dependencies.jar),
27+
which contains all required libraries except ios/android ones (Appium). Running of tests with this can be done with command `java -jar robotframework-seleniumlibrary-4.28.1.0-jar-with-dependencies.jar <test location>`.
2828

2929
- More information about this library can be found in the
30-
[Keyword Documentation](https://repo1.maven.org/maven2/com/github/marketsquare/robotframework-seleniumlibrary/4.0.0.0/robotframework-seleniumlibrary-4.0.0.0.html).
30+
[Keyword Documentation](https://repo1.maven.org/maven2/com/github/marketsquare/robotframework-seleniumlibrary/4.28.1.0/robotframework-seleniumlibrary-4.28.1.0.html).
3131
- For keyword completion in RIDE you can download this
32-
[Library Specs](https://repo1.maven.org/maven2/com/github/marketsquare/robotframework-seleniumlibrary/4.0.0.0/robotframework-seleniumlibrary-4.0.0.0.xml)
32+
[Library Specs](https://repo1.maven.org/maven2/com/github/marketsquare/robotframework-seleniumlibrary/4.28.1.0/robotframework-seleniumlibrary-4.28.1.0.xml)
3333
and place it in your PYTHONPATH.
3434

3535
## Old versions
@@ -82,8 +82,8 @@ which contains all required libraries. Running of tests with this can be done wi
8282

8383
## Testing IOS/Android browsers with library
8484

85-
Pre-Selenium 4 fat-jar contains Appium and Selendroid that allow testing of IOS and Android browsers. Those are dropped in Selenium 4 -versions,
86-
so dependencies needs to be handles self with either Maven/Gradle or manually. If there's need to have fat-jar with those, please create issue about that.
85+
Pre-Selenium 4 fat-jar contained Appium and Selendroid that allowed testing of IOS and Android browsers. Those are dropped in Selenium 4 -versions,
86+
so dependencies needs to be handles self with either Maven/Gradle or manually. Also 4.28.1.0 version of the library moved purely to Appium. If there's need to have fat-jar with those, please create issue about that.
8787

8888
## Differences
8989

pom.xml

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.github.marketsquare</groupId>
66
<artifactId>robotframework-seleniumlibrary</artifactId>
7-
<version>4.0.0.1-SNAPSHOT</version>
7+
<version>4.28.1.0-SNAPSHOT</version>
88
<packaging>jar</packaging>
99

1010
<name>Robot Framework :: SeleniumLibrary</name>
@@ -72,11 +72,12 @@
7272
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7373
<downloadSources>true</downloadSources>
7474
<downloadJavadocs>true</downloadJavadocs>
75-
<aspectj.version>1.9.8.RC1</aspectj.version>
76-
<java.version>11</java.version>
75+
<aspectj.version>1.9.21.2</aspectj.version>
76+
<java.compile.version>17</java.compile.version>
77+
<java.runtime.version>11</java.runtime.version>
7778
<robotframework.maven.plugin.version>2.1.0</robotframework.maven.plugin.version>
78-
<robotframework.version>4.1</robotframework.version>
79-
<selenium.version>4.0.0</selenium.version>
79+
<robotframework.version>4.1.2</robotframework.version>
80+
<selenium.version>4.28.1</selenium.version>
8081
<keywords.class>SeleniumLibrary</keywords.class>
8182
<browser>googlechromeheadless</browser>
8283
<downloadWebDriver>False</downloadWebDriver>
@@ -108,22 +109,10 @@
108109
<artifactId>json-simple</artifactId>
109110
<version>1.1.1</version>
110111
</dependency>
111-
<dependency>
112-
<groupId>io.selendroid</groupId>
113-
<artifactId>selendroid-client</artifactId>
114-
<version>0.17.0</version>
115-
<exclusions>
116-
<exclusion>
117-
<groupId>org.seleniumhq.selenium</groupId>
118-
<artifactId>selenium-java</artifactId>
119-
</exclusion>
120-
</exclusions>
121-
<scope>provided</scope>
122-
</dependency>
123112
<dependency>
124113
<groupId>io.appium</groupId>
125114
<artifactId>java-client</artifactId>
126-
<version>7.6.0</version>
115+
<version>9.4.0</version>
127116
<exclusions>
128117
<exclusion>
129118
<groupId>org.seleniumhq.selenium</groupId>
@@ -139,12 +128,12 @@
139128
<dependency>
140129
<groupId>org.apache.commons</groupId>
141130
<artifactId>commons-exec</artifactId>
142-
<version>1.3</version>
131+
<version>1.4.0</version>
143132
</dependency>
144133
<dependency>
145134
<groupId>org.seleniumhq.selenium</groupId>
146135
<artifactId>htmlunit-driver</artifactId>
147-
<version>2.53.0</version>
136+
<version>4.13.0</version>
148137
<exclusions>
149138
<exclusion>
150139
<groupId>org.seleniumhq.selenium</groupId>
@@ -163,18 +152,19 @@
163152
<dependency>
164153
<groupId>org.mockito</groupId>
165154
<artifactId>mockito-core</artifactId>
166-
<version>2.28.2</version>
155+
<version>5.15.2</version>
167156
<scope>test</scope>
168157
</dependency>
169158
<dependency>
170159
<groupId>io.github.bonigarcia</groupId>
171160
<artifactId>webdrivermanager</artifactId>
172-
<version>5.0.3</version>
161+
<!-- Issue with newer versions: https://github.com/bonigarcia/webdrivermanager/issues/1408 -->
162+
<version>5.7.0</version>
173163
</dependency>
174164
<dependency>
175165
<groupId>org.apache.commons</groupId>
176166
<artifactId>commons-lang3</artifactId>
177-
<version>3.12.0</version>
167+
<version>3.17.0</version>
178168
</dependency>
179169
</dependencies>
180170

@@ -341,9 +331,9 @@
341331
</execution>
342332
</executions>
343333
<configuration>
344-
<source>${java.version}</source>
345-
<target>${java.version}</target>
346-
<complianceLevel>${java.version}</complianceLevel>
334+
<source>${java.compile.version}</source>
335+
<target>${java.runtime.version}</target>
336+
<complianceLevel>${java.compile.version}</complianceLevel>
347337
<showWeaveInfo>true</showWeaveInfo>
348338
</configuration>
349339
<dependencies>

src/main/java/com/github/markusbernhardt/seleniumlibrary/keywords/BrowserManagement.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package com.github.markusbernhardt.seleniumlibrary.keywords;
22

3+
import io.appium.java_client.android.AndroidDriver;
34
import io.appium.java_client.ios.IOSDriver;
45
import io.github.bonigarcia.wdm.WebDriverManager;
56
import io.github.bonigarcia.wdm.config.DriverManagerType;
6-
import io.selendroid.client.SelendroidDriver;
77

88
import java.io.File;
99
import java.lang.reflect.Field;
@@ -61,6 +61,8 @@
6161
import com.github.markusbernhardt.seleniumlibrary.utils.WebDriverCache;
6262
import com.github.markusbernhardt.seleniumlibrary.utils.WebDriverCache.SessionIdAliasWebDriverTuple;
6363

64+
import static org.openqa.selenium.remote.Browser.HTMLUNIT;
65+
6466
@RobotKeywords
6567
public class BrowserManagement extends RunOnFailureKeywordsAdapter {
6668

@@ -639,14 +641,14 @@ protected WebDriver createLocalWebDriver(String browserName, Capabilities desire
639641
return new SafariDriver(new SafariOptions().merge(desiredCapabilities));
640642
case "android":
641643
try {
642-
return new SelendroidDriver(desiredCapabilities);
644+
return new AndroidDriver(desiredCapabilities);
643645
} catch (Exception e) {
644646
throw new SeleniumLibraryFatalException(e);
645647
}
646648
case "ipad":
647649
case "iphone":
648650
try {
649-
return new IOSDriver<>(new URL(""), desiredCapabilities);
651+
return new IOSDriver(new URL(""), desiredCapabilities);
650652
} catch (Exception e) {
651653
throw new SeleniumLibraryFatalException("Creating " + browserName + " instance failed.", e);
652654
}
@@ -716,7 +718,7 @@ protected Capabilities createCapabilities(String browserName, String desiredCapa
716718
case "firefoxheadless":
717719
desiredCapabilities = new FirefoxOptions();
718720
parseBrowserOptionsFirefox(browserOptions, desiredCapabilities);
719-
((FirefoxOptions)desiredCapabilities).setHeadless(true);
721+
((FirefoxOptions)desiredCapabilities).addArguments("-headless");
720722
break;
721723
case "ie":
722724
case "internetexplorer":
@@ -727,7 +729,7 @@ protected Capabilities createCapabilities(String browserName, String desiredCapa
727729
break;
728730
case "edgeheadless":
729731
desiredCapabilities = new EdgeOptions();
730-
((EdgeOptions)desiredCapabilities).setHeadless(true);
732+
((EdgeOptions)desiredCapabilities).addArguments("--headless=chrome");
731733
break;
732734
case "gc":
733735
case "chrome":
@@ -742,14 +744,14 @@ protected Capabilities createCapabilities(String browserName, String desiredCapa
742744
desiredCapabilities = new ChromeOptions();
743745
logging.debug("Parsing chrome options: "+browserOptions);
744746
parseBrowserOptionsChrome(browserOptions, desiredCapabilities);
745-
((ChromeOptions)desiredCapabilities).setHeadless(true);
747+
((ChromeOptions)desiredCapabilities).addArguments("--headless=chrome");
746748
break;
747749
case "safari":
748750
desiredCapabilities = new SafariOptions();
749751
break;
750752
case "htmlunit":
751753
case "htmlunitwithjs":
752-
desiredCapabilities = DesiredCapabilities.htmlUnit();
754+
desiredCapabilities = new DesiredCapabilities(HTMLUNIT.browserName(), "", Platform.ANY);
753755
((DesiredCapabilities) desiredCapabilities).setBrowserName("htmlunit");
754756
break;
755757
default:
@@ -858,7 +860,7 @@ protected void parseBrowserOptionsFirefox(String browserOptions, Capabilities de
858860
logging.warn("Unknown browserOption: " + key + ":" + entry.getValue());
859861
}
860862
}
861-
((FirefoxOptions) desiredCapabilities).setCapability(FirefoxDriver.PROFILE, firefoxProfile);
863+
((FirefoxOptions) desiredCapabilities).setProfile(firefoxProfile);
862864
} else {
863865
logging.warn("Invalid browserOptions: " + browserOptions);
864866
}

src/test/java/com/github/markusbernhardt/seleniumlibrary/keywords/BrowserManagementTest.java

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
package com.github.markusbernhardt.seleniumlibrary.keywords;
22

33
import static org.junit.Assert.*;
4+
import static org.mockito.ArgumentMatchers.any;
5+
import static org.mockito.ArgumentMatchers.eq;
46
import static org.mockito.Mockito.*;
57

8+
import java.io.IOException;
9+
610
import org.junit.BeforeClass;
711
import org.junit.Test;
812
import org.openqa.selenium.Capabilities;
@@ -41,25 +45,39 @@ public void testCreateDesiredCapabilities() {
4145
String desired = "{\"platform\":\"WINDOWS\",\"browserName\":\"firefox\",\"version\":\"\"}";
4246
String browserOptions = "{\"preferences\": {\"network.proxy.type\": 1, \"network.proxy.http\": \"localhost\", \"network.proxy.http_port\": 73571}}";
4347
Capabilities dc = bm.createCapabilities("firefox", desired, browserOptions);
44-
FirefoxProfile profile = (FirefoxProfile) dc.getCapability("firefox_profile");
45-
assertTrue(dc.getCapability("platform").toString().equals("WINDOWS"));
46-
assertTrue(profile.getStringPreference("network.proxy.http", "wrong") != "wrong");
48+
@SuppressWarnings("unchecked")
49+
String profileString = ((java.util.Map<String, String>) dc.getCapability("moz:firefoxOptions")).get("profile");
50+
FirefoxProfile profile;
51+
try {
52+
profile = FirefoxProfile.fromJson(profileString);
53+
assertTrue(dc.getCapability("platform").toString().equals("WINDOWS"));
54+
assertTrue(profile.getStringPreference("network.proxy.http", "wrong") != "wrong");
55+
} catch (IOException e) {
56+
fail(e.getMessage());
57+
}
4758
}
4859

4960
@Test
5061
public void testCreateDesiredCapabilitiesWithoutBrowserOptions() {
5162
String desired = "{\"platform\":\"WINDOWS\",\"browserName\":\"firefox\",\"version\":\"\"}";
5263
Capabilities dc = bm.createCapabilities("firefox", desired, null);
53-
FirefoxProfile profile = (FirefoxProfile) dc.getCapability("firefox_profile");
5464
assertTrue(dc.getCapability("platform").toString().equals("WINDOWS"));
5565
}
5666

67+
@SuppressWarnings("rawtypes")
5768
@Test
5869
public void testCreateDesiredCapabilitiesWithOnlyBrowserOptions() {
5970
String browserOptions = "{\"preferences\": {\"network.proxy.type\": 1, \"network.proxy.http\": \"localhost\", \"network.proxy.http_port\": 73571}}";
6071
Capabilities dc = bm.createCapabilities("firefox", null, browserOptions);
61-
FirefoxProfile profile = (FirefoxProfile) dc.getCapability("firefox_profile");
62-
assertTrue(profile.getStringPreference("network.proxy.http", "wrong") != "wrong");
72+
@SuppressWarnings("unchecked")
73+
String profileString = ((java.util.Map<String, String>) dc.getCapability("moz:firefoxOptions")).get("profile");
74+
FirefoxProfile profile;
75+
try {
76+
profile = FirefoxProfile.fromJson(profileString);
77+
assertTrue(profile.getStringPreference("network.proxy.http", "wrong") != "wrong");
78+
} catch (IOException e) {
79+
fail(e.getMessage());
80+
}
6381
}
6482

6583
@Test
@@ -79,7 +97,6 @@ public void parseChromeBrowserOptions() {
7997

8098
@Test
8199
public void parseChromeCapabilities() {
82-
ChromeOptions chromeOptions = new ChromeOptions();
83100
String browserName = "googlechromeheadless";
84101
String browserOptions = "{\"args\":[\"start-maximized\"],\"extensions\":[],\"prefs\":{\"intl.accept_languages\":\"de-AT\"}}";
85102
String desiredCapabilitiesString = "{}";

0 commit comments

Comments
 (0)