Skip to content

Commit

Permalink
fix findElements test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonahss committed Jul 11, 2014
1 parent c216ed3 commit 36a8d89
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ More can be found in the docs, but here's a quick list of features which this pr
- scrollToExact()
- openNotifications()
- Context Switching: .context(), .getContextHandles(), getContext())
- getNetworkConnection(), setNetworkConnection()

Locators:
- findElementByAccessibilityId()
Expand All @@ -60,6 +61,12 @@ Locators:
- findElementsByAndroidUIAutomator()

##Changelog##
*1.5.0*
- Added MobileCapabilityType enums for desired capabilities
- `findElement` and `findElements` return MobileElement objects (still need to be casted, but no longer instantiated)
- new appium v1.2 `hideKeyboard()` strategies added
- `getNetworkConnection()` and `setNetworkConnection()` commands added

*1.4.0*
- Added openNotifications() method, to open the notifications shade on Android
- Added pullFolder() method, to pull an entire folder as a zip archive from a device/simulator
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>1.4.0</version>
<version>1.5.0</version>
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down
14 changes: 7 additions & 7 deletions src/test/java/io/appium/java_client/IosUIAutomationTest.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package io.appium.java_client;

import static org.junit.Assert.assertEquals;
import io.appium.java_client.remote.MobileCapabilityType;

import java.io.File;
import java.net.URL;
import java.util.List;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;

import java.io.File;
import java.net.URL;
import java.util.List;

import static org.junit.Assert.assertEquals;

/**
* Test -ios uiautomation locator strategy
*/
Expand Down Expand Up @@ -46,7 +46,7 @@ public void findElementTest() {

@Test
public void findElementsTest() {
List<WebElement> elements = driver.findElementsByIosUIAutomation("elements()");
List<WebElement> elements = driver.findElementsByIosUIAutomation(".elements()");
assertEquals(3, elements.size());
}

Expand Down

0 comments on commit 36a8d89

Please sign in to comment.