You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-11Lines changed: 18 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ This is the Java language bindings for writing Appium Tests that conform to [Web
8
8
9
9
## v8 Migration
10
10
11
-
Since version 8 Appium Java Client had several major changes, which might require to
11
+
Since version 8 Appium Java Client had several major changes, which might require to
12
12
update your client code. Make sure to follow the [v7 to v8 Migration Guide](https://github.com/appium/java-client/blob/master/docs/v7-to-v8-migration-guide.md)
13
13
in order to streamline the migration process.
14
14
15
15
## Add Appium java client to your test framework
16
16
17
17
### Stable
18
18
19
-
#### Maven
19
+
#### Maven
20
20
21
21
Add the following to pom.xml:
22
22
@@ -57,19 +57,19 @@ Add the following to pom.xml:
57
57
```
58
58
59
59
Add the dependency:
60
-
60
+
61
61
```xml
62
62
<dependency>
63
63
<groupId>com.github.appium</groupId>
64
64
<artifactId>java-client</artifactId>
65
65
<version>latest commit ID from master branch</version>
66
66
</dependency>
67
-
```
67
+
```
68
68
69
69
#### Gradle
70
70
71
71
Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:
72
-
72
+
73
73
```groovy
74
74
allprojects {
75
75
repositories {
@@ -80,13 +80,20 @@ allprojects {
80
80
```
81
81
82
82
Add the dependency:
83
-
83
+
84
84
```groovy
85
85
dependencies {
86
86
implementation 'com.github.appium:java-client:latest commit id from master branch'
87
87
}
88
88
```
89
89
90
+
### How to pin Selenium dependencies?
91
+
92
+
Appium Java Client declares Selenium dependencies using open version range which is handled in differently by different
93
+
build tools. Sometimes users may want to pin used Selenium dependencies for [various reasons](https://github.com/appium/java-client/issues/1823).
94
+
You can find samples how it can be achieved using [Maven](docs/transitive-dependencies-management.md#maven) or
95
+
[Gradle](docs/transitive-dependencies-management.md#gradle) in the docs.
96
+
90
97
## Drivers Support
91
98
92
99
Appium java client has dedicated classes to support the following Appium drivers:
@@ -98,7 +105,7 @@ Appium java client has dedicated classes to support the following Appium drivers
0 commit comments