Skip to content

Commit 7dba71a

Browse files
committed
docs: clarify selenium-java version override behavior in README
Explains that consumers can declare their own selenium-java version and Maven will use it instead of the transitive dependency. Also fixes typo "Seleium" -> "Selenium".
1 parent cc43814 commit 7dba71a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

selenium/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@ This package does not follow Semantic Versioning (SemVer) but instead uses the m
1515

1616
Axe-core-maven-html-selenium requires Java 8.
1717

18-
More information: [Seleium Getting Started](https://www.selenium.dev/documentation/webdriver/getting_started/)
18+
More information: [Selenium Getting Started](https://www.selenium.dev/documentation/webdriver/getting_started/)
1919

2020
## Installation
2121

22-
Add Selenium Java to your `pom.xml` if you have not already:
22+
Add `axe-core-maven-html-selenium` dependency to your `pom.xml`:
2323

2424
```xml
25-
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
25+
<!-- https://mvnrepository.com/artifact/com.deque.html.axe-core/selenium -->
2626
<dependency>
27-
<groupId>org.seleniumhq.selenium</groupId>
28-
<artifactId>selenium-java</artifactId>
29-
<version>4.8.1</version>
27+
<groupId>com.deque.html.axe-core</groupId>
28+
<artifactId>selenium</artifactId>
29+
<version>4.6.0</version>
3030
</dependency>
3131
```
3232

33-
Add `axe-core-maven-html-selenium` dependency to your `pom.xml`:
33+
This library includes `selenium-java` as a transitive dependency. If you need a different version of Selenium, declare it explicitly in your `pom.xml` and Maven will use your version instead:
3434

3535
```xml
36-
<!-- https://mvnrepository.com/artifact/com.deque.html.axe-core/selenium -->
36+
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
3737
<dependency>
38-
<groupId>com.deque.html.axe-core</groupId>
39-
<artifactId>selenium</artifactId>
40-
<version>4.6.0</version>
38+
<groupId>org.seleniumhq.selenium</groupId>
39+
<artifactId>selenium-java</artifactId>
40+
<version>4.x.x</version>
4141
</dependency>
4242
```
4343

0 commit comments

Comments
 (0)