@@ -14,41 +14,25 @@ First you need to install the Selenium bindings for your automation project.
14
14
The installation process for libraries depends on the language you choose to use.
15
15
16
16
### 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:
19
22
20
23
``` xml
21
24
<dependency >
22
25
<groupId >org.seleniumhq.selenium</groupId >
23
26
<artifactId >selenium-java</artifactId >
24
- <version >4.X </version >
27
+ <version >4.0.0 </version >
25
28
</dependency >
26
29
```
27
30
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:
45
32
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'
52
36
```
53
37
54
38
### Python
@@ -82,6 +66,12 @@ Installation of Selenium libraries for Ruby can be done using gem:
82
66
gem install selenium-webdriver
83
67
```
84
68
69
+ Or add it to your ` Gemfile ` :
70
+
71
+ ``` rb
72
+ gem ' selenium-webdriver' , ' ~> 4.0'
73
+ ```
74
+
85
75
### JavaScript
86
76
Installation of Selenium libraries for JavaScript can be done using npm:
87
77
0 commit comments