ldi-github / shirates-core

Integration test framework for mobile apps
https://ldi-github.github.io/shirates-core/
Apache License 2.0
8 stars 0 forks source link

How to use -uiandroidAutomator for select expression #98

Closed imgeopineda closed 4 months ago

imgeopineda commented 4 months ago

image

Sample Format:

new UiSelector().className("android.view.ViewGroup").instance(58)

ldi-github commented 4 months ago

Shirates does not support UISelector directly. But you can get AndroidDriver instance as follows.

Example driver.androidDriver.findElement(AppiumBy.androidUIAutomator(expression))

See Appium documentation for details of findElement function.

imgeopineda commented 4 months ago

I see thank you so much