Skip to content

Commit adeddda

Browse files
authored
Merge pull request #128 from retest/add-selenium-workaround
Add workaround for selenium version 4
2 parents 9c44eab + eed9534 commit adeddda

File tree

1 file changed

+86
-3
lines changed

1 file changed

+86
-3
lines changed

docs/recheck-web/setup/maven.md

Lines changed: 86 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ With this, you can now turn to your favorite IDE (e.g. `mvn eclipse:eclipse`) an
5151

5252
Extract the archive to your hard drive. Note that for the ChromeDriver to work, you need the major version to match your Chrome version installed on your system. Now we should be all set up to create [your first test](../tutorial/explicit-checks.md).
5353

54-
## Using ReTest in connection with Spring
55-
If you plan to use Spring alongside with ReTest in the same project, you should know the following:
54+
## Using ***recheck*** in connection with Spring
55+
If you plan to use Spring alongside with ***recheck*** in the same project, you should know the following:
5656

57-
Since Java version 11 `javax.xml.bind` is replaced by `jakarta.xml.bind`. ReTest already uses the newer version, meaningly `jakarta.xml.bind`, while
57+
Since Java version 11 `javax.xml.bind` is replaced by `jakarta.xml.bind`. ***recheck*** already uses the newer version, meaningly `jakarta.xml.bind`, while
5858
Spring is still using `javax.xml.bind`. To avoid any errors, it is necessary to add the following dependencies to your `pom.xml` file.
5959

6060
```xml
@@ -90,3 +90,86 @@ Spring is still using `javax.xml.bind`. To avoid any errors, it is necessary to
9090
<scope>test</scope>
9191
</dependency>
9292
```
93+
94+
Furthermore, Spring defines Selenium version 3 in its POM file whereas ***recheck*** (version >= 1.13) is using Selenium version 4.
95+
The respective dependencies must therefore be overwritten in your `pom.xml` file by adding the following block.
96+
97+
```xml
98+
<dependencyManagement>
99+
<dependencies>
100+
<!-- START workaround selenium 4 -->
101+
<!-- recheck >= 1.13 uses selenium 4, spring defines selenium 3 in parent-pom, so we need to overwrite it. -->
102+
<dependency>
103+
<groupId>org.seleniumhq.selenium</groupId>
104+
<artifactId>selenium-java</artifactId>
105+
<version>[4,4.99)</version>
106+
</dependency>
107+
<dependency>
108+
<groupId>org.seleniumhq.selenium</groupId>
109+
<artifactId>selenium-api</artifactId>
110+
<version>[4,4.99)</version>
111+
</dependency>
112+
<dependency>
113+
<groupId>org.seleniumhq.selenium</groupId>
114+
<artifactId>selenium-chrome-driver</artifactId>
115+
<version>[4,4.99)</version>
116+
</dependency>
117+
<dependency>
118+
<groupId>org.seleniumhq.selenium</groupId>
119+
<artifactId>selenium-devtools-v85</artifactId>
120+
<version>4.1.2</version>
121+
</dependency>
122+
<dependency>
123+
<groupId>org.seleniumhq.selenium</groupId>
124+
<artifactId>selenium-devtools-v97</artifactId>
125+
<version>[4,4.99)</version>
126+
</dependency>
127+
<dependency>
128+
<groupId>org.seleniumhq.selenium</groupId>
129+
<artifactId>selenium-devtools-v98</artifactId>
130+
<version>[4,4.99)</version>
131+
</dependency>
132+
<dependency>
133+
<groupId>org.seleniumhq.selenium</groupId>
134+
<artifactId>selenium-devtools-v99</artifactId>
135+
<version>[4,4.99)</version>
136+
</dependency>
137+
<dependency>
138+
<groupId>org.seleniumhq.selenium</groupId>
139+
<artifactId>selenium-edge-driver</artifactId>
140+
<version>[4,4.99)</version>
141+
</dependency>
142+
<dependency>
143+
<groupId>org.seleniumhq.selenium</groupId>
144+
<artifactId>selenium-firefox-driver</artifactId>
145+
<version>[4,4.99)</version>
146+
</dependency>
147+
<dependency>
148+
<groupId>org.seleniumhq.selenium</groupId>
149+
<artifactId>selenium-ie-driver</artifactId>
150+
<version>4.1.2</version>
151+
</dependency>
152+
<dependency>
153+
<groupId>org.seleniumhq.selenium</groupId>
154+
<artifactId>selenium-opera-driver</artifactId>
155+
<version>[4,4.99)</version>
156+
</dependency>
157+
<dependency>
158+
<groupId>org.seleniumhq.selenium</groupId>
159+
<artifactId>selenium-remote-driver</artifactId>
160+
<version>[4,4.99)</version>
161+
</dependency>
162+
<dependency>
163+
<groupId>org.seleniumhq.selenium</groupId>
164+
<artifactId>selenium-safari-driver</artifactId>
165+
<version>[4,4.99)</version>
166+
</dependency>
167+
<dependency>
168+
<groupId>org.seleniumhq.selenium</groupId>
169+
<artifactId>selenium-support</artifactId>
170+
<version>[4,4.99)</version>
171+
</dependency>
172+
<!-- END workaround selenium 4 -->
173+
</dependencies>
174+
</dependencyManagement>
175+
```

0 commit comments

Comments
 (0)