I assume it has something to do with the XPath2. This link points to that but still it is not clear why my mentioned example doesn’t return the list of elements.
I noticed that with Appium Inspector the same XPath expression returns full list of elements.
Then I compared request lines of server logs from the test run and from the Appium Inspector’s session - they where the same.
So, the same request with XPath locator returns 1 element in tests, but returns full list in Appium Inspector.
Both are Appium 2 servers Appium v2.0.0-beta.44 EspressoDriver (v2.10.0) without the issue Appium v2.0.0-beta.46 EspressoDriver (v2.13.0) with the issue
Maybe it’s a capability or some other configuration issue.
Does anyone have a clue what it can be, I can’t find any related capability.