Skip to content

Commit 0266a90

Browse files
committed
update to 1.6.0
1 parent 112ce77 commit 0266a90

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ Locators:
6161
- findElementsByAndroidUIAutomator()
6262

6363
##Changelog##
64+
*1.6.0*
65+
- Added @findBy annotations. Explanation here: https://github.com/appium/java-client/pull/68 Thanks to TikhomirovSergey
66+
- Appium Driver now implements LocationContext interface, so setLocation() works for setting GPS coordinates
67+
6468
*1.5.0*
6569
- Added MobileCapabilityType enums for desired capabilities
6670
- `findElement` and `findElements` return MobileElement objects (still need to be casted, but no longer instantiated)

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.appium</groupId>
88
<artifactId>java-client</artifactId>
9-
<version>1.5.0</version>
9+
<version>1.6.0</version>
1010
<dependencies>
1111
<dependency>
1212
<groupId>com.google.code.gson</groupId>

src/test/java/io/appium/java_client/AndroidGestureTest.java

+9-7
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,20 @@
1717

1818
package io.appium.java_client;
1919

20-
import static org.junit.Assert.*;
2120
import io.appium.java_client.remote.MobileCapabilityType;
22-
23-
import java.io.File;
24-
import java.net.URL;
25-
2621
import org.junit.After;
2722
import org.junit.Before;
2823
import org.junit.Test;
2924
import org.openqa.selenium.By;
3025
import org.openqa.selenium.WebElement;
3126
import org.openqa.selenium.remote.DesiredCapabilities;
3227

28+
import java.io.File;
29+
import java.net.URL;
30+
31+
import static org.junit.Assert.assertEquals;
32+
import static org.junit.Assert.assertNotEquals;
33+
3334
/**
3435
* Test Mobile Driver features
3536
*/
@@ -83,7 +84,8 @@ public void dragNDropTest() {
8384
}
8485

8586
@Test
86-
public void TapSingleFingerTest() {
87-
driver.tap(1,100,200,1000);
87+
public void TapSingleFingerTest() throws InterruptedException {
88+
Thread.sleep(2500);
89+
driver.tap(1,200,300,1000);
8890
}
8991
}

0 commit comments

Comments
 (0)