Skip to content

Commit fdefd65

Browse files
committed
3.0.0
1 parent 34b97c4 commit fdefd65

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Depends upon the Selenium Java client library, available [here](http://docs.sele
1111
<dependency>
1212
<groupId>io.appium</groupId>
1313
<artifactId>java-client</artifactId>
14-
<version>2.2.0</version>
14+
<version>3.0.0</version>
1515
</dependency>
1616
```
1717

@@ -21,7 +21,7 @@ It currently depends on selenium-java 2.46.0. If it is necessary to use another
2121
<dependency>
2222
<groupId>io.appium</groupId>
2323
<artifactId>java-client</artifactId>
24-
<version>2.2.0</version>
24+
<version>3.0.0</version>
2525
<exclusions>
2626
<exclusion>
2727
<groupId>org.seleniumhq.selenium</groupId>
@@ -45,6 +45,15 @@ There is an abstract _AppiumDriver_ class which inherits from the Selenium Java
4545
The _AppiumDriver_ class contains all methods shared by iOS and Android.
4646
_IOSDriver_ and _AndroidDriver_ both extend _AppiumDriver_ and provide more methods, and specific implementations for some methods.
4747

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+
4857
###Added functions###
4958
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.
5059

@@ -92,8 +101,19 @@ Locators:
92101
- findElementByAndroidUIAutomator()
93102
- findElementsByAndroidUIAutomator()
94103

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+
95108
##Changelog##
96109

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+
97117
*2.2.0*
98118
- Added new TouchAction methods for LongPress, on an element, at x,y coordinates, or at an offset from within an element
99119
- SwipeElementDirection changed. Read the documentation, it's now smarter about how/where to swipe

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>io.appium</groupId>
77
<artifactId>java-client</artifactId>
8-
<version>2.2.0</version>
8+
<version>3.0.0</version>
99
<dependencies>
1010
<dependency>
1111
<groupId>com.google.code.gson</groupId>
@@ -14,8 +14,8 @@
1414
</dependency>
1515
<dependency>
1616
<groupId>org.seleniumhq.selenium</groupId>
17-
<artifactId>selenium-java</artifactId>
18-
<version>2.46.0</version>
17+
<artifactId>selenium-java</artifactId>
18+
<version>2.46.0</version>
1919
</dependency>
2020
<dependency>
2121
<groupId>junit</groupId>

0 commit comments

Comments
 (0)