@@ -11,41 +11,23 @@ First you need to install the Selenium bindings for your automation project.
11
11
The installation process for libraries depends on the language you choose to use.
12
12
13
13
### Java
14
- Installation of Selenium libraries for Java can be done using Maven.
15
- Add the _ selenium-java_ dependency in your project pom.xml:
14
+ Installation of Selenium libraries for Java is accomplished using a build tool.
15
+
16
+ For Maven, add the _ selenium-java_ dependency in your project ` pom.xml ` file:
16
17
17
18
``` xml
18
19
<dependency >
19
20
<groupId >org.seleniumhq.selenium</groupId >
20
21
<artifactId >selenium-java</artifactId >
21
- <version >4.X </version >
22
+ <version >4.0.0 </version >
22
23
</dependency >
23
24
```
24
25
25
- The _ selenium-java_ dependency supports running your automation
26
- project with all Selenium supported browsers. If you want to run tests
27
- only in a specific browser, you can add the dependency for that browser
28
- in your _ pom.xml_ file.
29
- For example, you should add following dependency in your _ pom.xml_
30
- file to run your tests only in Firefox:
31
-
32
- ``` xml
33
- <dependency >
34
- <groupId >org.seleniumhq.selenium</groupId >
35
- <artifactId >selenium-firefox-driver</artifactId >
36
- <version >4.X</version >
37
- </dependency >
38
- ```
39
-
40
- In a similar manner, if you want to run tests only in Chrome,
41
- you should add the following dependency:
26
+ For Gradle, add the _ selenium-java_ dependency in your project ` build.gradle ` file:
42
27
43
- ``` xml
44
- <dependency >
45
- <groupId >org.seleniumhq.selenium</groupId >
46
- <artifactId >selenium-chrome-driver</artifactId >
47
- <version >4.X</version >
48
- </dependency >
28
+ ``` text
29
+ dependencies {
30
+ compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.4.0'
49
31
```
50
32
51
33
### Python
@@ -79,6 +61,12 @@ Installation of Selenium libraries for Ruby can be done using gem:
79
61
gem install selenium-webdriver
80
62
```
81
63
64
+ Or add it to your ` Gemfile ` :
65
+
66
+ ``` rb
67
+ gem ' selenium-webdriver' , ' ~> 4.0'
68
+ ```
69
+
82
70
### JavaScript
83
71
Installation of Selenium libraries for JavaScript can be done using npm:
84
72
0 commit comments