All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.appium.java_client.android.AndroidElement Maven / Gradle / Ivy

There is a newer version: 9.3.0
Show newest version
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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy