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
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Depends upon the Selenium Java client library, available [here](http://docs.sele
11
11
<dependency>
12
12
<groupId>io.appium</groupId>
13
13
<artifactId>java-client</artifactId>
14
-
<version>2.2.0</version>
14
+
<version>3.0.0</version>
15
15
</dependency>
16
16
```
17
17
@@ -21,7 +21,7 @@ It currently depends on selenium-java 2.46.0. If it is necessary to use another
21
21
<dependency>
22
22
<groupId>io.appium</groupId>
23
23
<artifactId>java-client</artifactId>
24
-
<version>2.2.0</version>
24
+
<version>3.0.0</version>
25
25
<exclusions>
26
26
<exclusion>
27
27
<groupId>org.seleniumhq.selenium</groupId>
@@ -45,6 +45,15 @@ There is an abstract _AppiumDriver_ class which inherits from the Selenium Java
45
45
The _AppiumDriver_ class contains all methods shared by iOS and Android.
46
46
_IOSDriver_ and _AndroidDriver_ both extend _AppiumDriver_ and provide more methods, and specific implementations for some methods.
47
47
48
+
In the same way, _IOSElement_ and _AndroidElement_ both are subclasses of _MobileElement_
49
+
50
+
You can instantiate and AppiumDriver with the class of element you want commands to return. For example
51
+
`AppiumDriver<MobileElement> driver;`
52
+
and now when you call the Find functions, they return elements of class MobileElement.
53
+
You can also instantiate drivers like this, to make things simpler:
54
+
`AndroidDriver<AndroidElement> driver = new AndroidDriver(.......`
55
+
`IOSElement el = driver.findElementByAccessiblityId('sample');`
56
+
48
57
###Added functions###
49
58
More can be found in the docs, but here's a quick list of features which this project has added to the usual selenium binding.
50
59
@@ -92,8 +101,19 @@ Locators:
92
101
- findElementByAndroidUIAutomator()
93
102
- findElementsByAndroidUIAutomator()
94
103
104
+
## Note to developers! ##
105
+
If you are working on this project and use Intellij Idea, you need to change the compiler to the Eclipse compilers instead of the default.
106
+
If you are using the Eclipse IDE, make sure you are using verison Luna or later.
107
+
95
108
##Changelog##
96
109
110
+
*3.0.0*
111
+
- AppiumDriver class is now a Generic. This allows us to return elements of class MobileElement (and its subclasses) instead of always returning WebElements and requiring users to cast to MobileElement. See https://github.com/appium/java-client/pull/182
112
+
- Full set of Android KeyEvents added.
113
+
- Selenium client version updated to 2.46
114
+
- PageObject enhancements
115
+
- Junit dependency removed
116
+
97
117
*2.2.0*
98
118
- Added new TouchAction methods for LongPress, on an element, at x,y coordinates, or at an offset from within an element
99
119
- SwipeElementDirection changed. Read the documentation, it's now smarter about how/where to swipe
0 commit comments