Skip to content

Commit

Permalink
fix findElement test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonahss committed Jun 19, 2015
1 parent 4881341 commit 34b97c4
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
package io.appium.java_client.android;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import io.appium.java_client.MobileBy;
import io.appium.java_client.MobileElement;
import io.appium.java_client.remote.MobileCapabilityType;
import io.appium.java_client.remote.MobilePlatform;

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;
import static org.junit.Assert.assertTrue;

/**
* Test -android uiautomator locator strategy
*/
Expand Down Expand Up @@ -50,7 +50,7 @@ public void findElementTest() {
@Test
public void findElementsTest() {
List<AndroidElement> elements = driver.findElementsByAndroidUIAutomator("new UiSelector().clickable(true)");
assertTrue(elements.size() > 11);
assertTrue(elements.size() > 10);
}

@Test
Expand All @@ -62,7 +62,7 @@ public void findElementByTest() {
@Test
public void findElementsByTest() {
List<AndroidElement> elements = driver.findElements(MobileBy.AndroidUIAutomator("new UiSelector().clickable(true)"));
assertTrue(elements.size() > 11);
assertTrue(elements.size() > 10);
}

@Test
Expand Down

0 comments on commit 34b97c4

Please sign in to comment.