Hi All,
I’m currently selecting some elements by text via this approach and it works (Python):
find_element_by_android_uiautomator(‘text("%s")’ % locatorvalue)
However, I get [Deprecated] Please use ‘find_element’ with ‘AppiumBy.ANDROID_UIAUTOMATOR’ instead.
So when I try to use it as suggested:
find_element(AppiumBy.ANDROID_UIAUTOMATOR(‘text("%s")’ % locatorvalue))
it doesn’t find the element.
Also tried with new UiSelector().text("%s") - also doesn’t work.
Can anyone, please, explain how to use it?