io.appium.java_client.android.AndroidElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java client for Appium Mobile Webdriver
package io.appium.java_client.android;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.WebElement;
import io.appium.java_client.FindsByAndroidUIAutomator;
import io.appium.java_client.MobileElement;
public class AndroidElement extends MobileElement implements
FindsByAndroidUIAutomator {
@Override
public MobileElement findElementByAndroidUIAutomator(String using) {
return (MobileElement) findElement("-android uiautomator", using);
}
@Override
public List findElementsByAndroidUIAutomator(String using) {
List result = new ArrayList();
List found = findElements("-android uiautomator", using);
for (WebElement e: found)
result.add((AndroidElement) e);
return result;
}
}