AndroidUiAutomator returning an exception

Hi guys,

I’m pretty new to the automated testing world and selenium in general and things have been pretty smooth so far except one thing…whenever I try to use findElementByAndroidUIAutomator my tests fail and I get :

org.openqa.selenium.InvalidSelectorException: invalid selector (Locator Strategy '-android uiautomator' is not supported for this session) (WARNING: The server did not provide any stacktrace information)

The exact line I’m using is driver.findElementByAndroidUIAutomator("new UiSelector().text('Sign In')");

Am I doing something wrong? Did I not set up something incorrectly?

Thanks

Hi Henry

Appium Studio still don’t support findByUIAutomator Strategy

We are working on the implementation, it should be released in approx. 1-2 months, I’ll keep you posted

In any case, you can alter your strategy and go with XPath (example) instead of UIAutomator