Platform: Android V9
Appium version: 1.20.2
Emulator and Real Device
Client language: C#
OS: Windows 10
App: Native app
Hi
Not sure if this is a bug in Appium, Selenium Grid 4 or my test code.
When running the same test against Selenium Grid V4 the following error is thrown when trying to interact with an element:
“Unable to determine element locating strategy for accessibility id”
After a bit of searching it seems that the W3C standard only supports ByXml and ByCSS.
Adding the capability: cap.AddAdditionalCapability(ChromeOptions.Capability, JObject.Parse("{“w3c”:false}")); did not work
Before I change all the object recognition strings from:
MobileBy.AccessibilityId(“LoginHostEntry”);
to something like:
MobileBy.XPath("//android.widget.EditText[@content-desc=‘LoginHostEntry’]");
or
MobileBy.CssSelector(“android.widget.EditText[content-desc=‘LoginHostEntry’]”);
I would like to know if there is anything else I should try as I am not a fan of using XPath as it is slower than using AccessibilityId.
Thank you