Skip to content

Commit 49fec2b

Browse files
committed
Merge pull request #28 from Jonahss/master
Update to 1.2.0
2 parents ac43e99 + 59c75af commit 49fec2b

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ More can be found in the docs, but here's a quick list of features which this pr
4747
- lockScreen()
4848
- shake()
4949
- complexFind()
50+
- scrollTo()
51+
- scrollToExact()
5052
- Context Switching: .context(), .getContextHandles(), getContext())
5153

5254
Locators:
@@ -58,6 +60,9 @@ Locators:
5860
- findElementsByAndroidUIAutomator()
5961

6062
##Changelog##
63+
*1.2.0*
64+
- complexFind() now returns MobileElement objects
65+
- added scrollTo() and scrollToExact() methods for use with complexFind()
6166
*1.1.0*
6267
- AppiumDriver now implements Rotatable. rotate() and getOrientation() methods added
6368
- when no appium server is running, the proper error is thrown, instead of a NullPointerException

pom.xml

Lines changed: 1 addition & 1 deletion
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.1.0</version>
9+
<version>1.2.0</version>
1010
<dependencies>
1111
<dependency>
1212
<groupId>com.google.collections</groupId>

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.appium.java_client;
22

3-
import org.apache.commons.codec.binary.Base64;
43
import org.junit.After;
54
import org.junit.Before;
65
import org.junit.Test;
@@ -89,12 +88,4 @@ public void ErrorTest() {
8988
driver.findElementByAndroidUIAutomator(null);
9089
}
9190

92-
@Test
93-
public void pushFileTest() {
94-
byte[] data = Base64.encodeBase64("The eventual code is no more than the deposit of your understanding. ~E. W. Dijkstra".getBytes());
95-
driver.pushFile("/data/local/tmp/remote.txt", data);
96-
byte[] returnData = driver.pullFile("/data/local/tmp/remote.txt");
97-
String returnDataDecoded = new String(Base64.decodeBase64(returnData));
98-
assertEquals("The eventual code is no more than the deposit of your understanding. ~E. W. Dijkstra", returnDataDecoded);
99-
}
10091
}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package io.appium.java_client;
1919

20+
import org.apache.commons.codec.binary.Base64;
2021
import org.junit.After;
2122
import org.junit.Before;
2223
import org.junit.Test;
@@ -95,4 +96,13 @@ public void closeAppTest() throws InterruptedException {
9596
driver.launchApp();
9697
assertEquals(".ApiDemos", driver.currentActivity());
9798
}
99+
100+
@Test
101+
public void pushFileTest() {
102+
byte[] data = Base64.encodeBase64("The eventual code is no more than the deposit of your understanding. ~E. W. Dijkstra".getBytes());
103+
driver.pushFile("/data/local/tmp/remote.txt", data);
104+
byte[] returnData = driver.pullFile("/data/local/tmp/remote.txt");
105+
String returnDataDecoded = new String(Base64.decodeBase64(returnData));
106+
assertEquals("The eventual code is no more than the deposit of your understanding. ~E. W. Dijkstra", returnDataDecoded);
107+
}
98108
}

0 commit comments

Comments
 (0)