Skip to main content

AS - Android Find By UIAutomator

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

The user can find elements using Android UI Automator script.

Element identification methods using UI Automator API can be found in UI Selector And UI Scrollable.

info

Supported for non-instrumented applications only

info

Supported by Android 5.0+

Example

driver.findElementByAndroidUIAutomator("resourceId(\"io.appium.android.apis:id/edit\")")

Example 2

driver.findElementByAndroidUIAutomator("new UiSelector().className(\"android.widget.EditText\")");

Example 3

driver.findElementByAndroidUIAutomator("new UiSelector().clickable(true).instance(0)");