Skip to content

Commit 8b66afb

Browse files
committed
update docs for installing selenium libraries
1 parent 872174b commit 8b66afb

File tree

1 file changed

+16
-26
lines changed

1 file changed

+16
-26
lines changed

website_and_docs/content/documentation/webdriver/getting_started/install_selenium_library.en.md

+16-26
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,25 @@ First you need to install the Selenium bindings for your automation project.
1414
The installation process for libraries depends on the language you choose to use.
1515

1616
### Java
17-
Installation of Selenium libraries for Java can be done using Maven.
18-
Add the _selenium-java_ dependency in your project pom.xml:
17+
Installation of Selenium libraries for Java is accomplished using a build tool.
18+
You can find the latest version on [Selenium Downloads](/downloads/) and see all available versions on
19+
[Maven Repository](https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java)
20+
21+
For Maven, add the _selenium-java_ dependency in your project `pom.xml` file:
1922

2023
```xml
2124
<dependency>
2225
<groupId>org.seleniumhq.selenium</groupId>
2326
<artifactId>selenium-java</artifactId>
24-
<version>4.X</version>
27+
<version>4.0.0</version>
2528
</dependency>
2629
```
2730

28-
The _selenium-java_ dependency supports running your automation
29-
project with all Selenium supported browsers. If you want to run tests
30-
only in a specific browser, you can add the dependency for that browser
31-
in your _pom.xml_ file.
32-
For example, you should add following dependency in your _pom.xml_
33-
file to run your tests only in Firefox:
34-
35-
```xml
36-
<dependency>
37-
<groupId>org.seleniumhq.selenium</groupId>
38-
<artifactId>selenium-firefox-driver</artifactId>
39-
<version>4.X</version>
40-
</dependency>
41-
```
42-
43-
In a similar manner, if you want to run tests only in Chrome,
44-
you should add the following dependency:
31+
For Gradle, add the _selenium-java_ dependency in your project `build.gradle` file:
4532

46-
```xml
47-
<dependency>
48-
<groupId>org.seleniumhq.selenium</groupId>
49-
<artifactId>selenium-chrome-driver</artifactId>
50-
<version>4.X</version>
51-
</dependency>
33+
```text
34+
dependencies {
35+
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '4.0.0'
5236
```
5337

5438
### Python
@@ -82,6 +66,12 @@ Installation of Selenium libraries for Ruby can be done using gem:
8266
gem install selenium-webdriver
8367
```
8468

69+
Or add it to your `Gemfile`:
70+
71+
```rb
72+
gem 'selenium-webdriver', '~> 4.0'
73+
```
74+
8575
### JavaScript
8676
Installation of Selenium libraries for JavaScript can be done using npm:
8777

0 commit comments

Comments
 (0)