Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Support non-strict XPath queries #318

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

mykola-mokhnach
Copy link
Contributor

Addresses https://discuss.appium.io/t/cannot-find-element-with-mac2/44959

In order to maintain the compatibility with the previously used libxml2 parser we need to "manually" patch incoming queries and make sure they always have the parent element type set. This is related to the fact NSXMLDocument's parser is strict and does not support the loose //node syntax, but requires */node or ./node instead

@mykola-mokhnach mykola-mokhnach merged commit f596a61 into appium:master Oct 28, 2024
13 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 28, 2024
## [1.20.2](v1.20.1...v1.20.2) (2024-10-28)

### Bug Fixes

* Support non-strict XPath queries ([#318](#318)) ([f596a61](f596a61))
Copy link

🎉 This PR is included in version 1.20.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mykola-mokhnach mykola-mokhnach deleted the start_dot branch October 28, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants