-
This has taken some digging, and I'm not 100% sure it is an Appium issue (issue is possibly with whatever is processing the XPath queries). I have only seen this against Android as that is what I am currently writing automation for - I've not tried it against an iOS app or web. I have XML (pseudo for readability):-
const parent = await $('//parent'); i would expect allChildrenLength to be 3 - it is 1. Either I'm doing something fundamentally wrong (95% sure I'm not as I've been using XPath's for far too many years to count :-) ) or there is a bug in the XPath interpreter... Could anyone confirm (IE. Repro this) if this is a bug or if I'm being daft and have missed something. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
When enabled |
Beta Was this translation helpful? Give feedback.
-
I face same issue with iOS app. Is there any work around for it? Please suggest |
Beta Was this translation helpful? Give feedback.
When enabled
limitXPathContextScope
via settings api https://github.com/appium/appium-uiautomator2-driver#settings-api ?It is only available with Appium 2 and the latest UIA2 driver.