Skip to content

Commit 36a8d89

Browse files
committed
fix findElements test
1 parent c216ed3 commit 36a8d89

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ More can be found in the docs, but here's a quick list of features which this pr
5050
- scrollToExact()
5151
- openNotifications()
5252
- Context Switching: .context(), .getContextHandles(), getContext())
53+
- getNetworkConnection(), setNetworkConnection()
5354

5455
Locators:
5556
- findElementByAccessibilityId()
@@ -60,6 +61,12 @@ Locators:
6061
- findElementsByAndroidUIAutomator()
6162

6263
##Changelog##
64+
*1.5.0*
65+
- Added MobileCapabilityType enums for desired capabilities
66+
- `findElement` and `findElements` return MobileElement objects (still need to be casted, but no longer instantiated)
67+
- new appium v1.2 `hideKeyboard()` strategies added
68+
- `getNetworkConnection()` and `setNetworkConnection()` commands added
69+
6370
*1.4.0*
6471
- Added openNotifications() method, to open the notifications shade on Android
6572
- Added pullFolder() method, to pull an entire folder as a zip archive from a device/simulator

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.4.0</version>
9+
<version>1.5.0</version>
1010
<dependencies>
1111
<dependency>
1212
<groupId>com.google.code.gson</groupId>

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package io.appium.java_client;
22

3-
import static org.junit.Assert.assertEquals;
43
import io.appium.java_client.remote.MobileCapabilityType;
5-
6-
import java.io.File;
7-
import java.net.URL;
8-
import java.util.List;
9-
104
import org.junit.After;
115
import org.junit.Before;
126
import org.junit.Test;
137
import org.openqa.selenium.WebElement;
148
import org.openqa.selenium.remote.DesiredCapabilities;
159

10+
import java.io.File;
11+
import java.net.URL;
12+
import java.util.List;
13+
14+
import static org.junit.Assert.assertEquals;
15+
1616
/**
1717
* Test -ios uiautomation locator strategy
1818
*/
@@ -46,7 +46,7 @@ public void findElementTest() {
4646

4747
@Test
4848
public void findElementsTest() {
49-
List<WebElement> elements = driver.findElementsByIosUIAutomation("elements()");
49+
List<WebElement> elements = driver.findElementsByIosUIAutomation(".elements()");
5050
assertEquals(3, elements.size());
5151
}
5252

0 commit comments

Comments
 (0)