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

Switch XPath engine to Jaxen/JDOM2 #237

Merged
merged 8 commits into from
Dec 19, 2018

Conversation

mykola-mokhnach
Copy link
Contributor

Another try to address appium/appium#11854

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@mykola-mokhnach
Copy link
Contributor Author

I have also added a separate setting to enable unicode transliteration for class names: normalizeTagNames. This setting is disabled by default and is supposed to be used as a last resort if nothing else helps

.replaceAll("[$@#&]", ".")
.replaceAll("\\.+", ".")
.replaceAll("(^\\.|\\.$)", "");

if (((NormalizeTagNames) Settings.NORMALIZE_TAG_NAMES.getSetting()).getValue()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we apply this replacement for espresso driver as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to do any preliminary optimizations yet. The way class names are retrieved by espresso is different from UIA, so it might be there is no such problem.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, I see > The way class names are retrieved by espresso is different from UIA

thanks!

@mykola-mokhnach mykola-mokhnach merged commit 578e13a into appium:master Dec 19, 2018
rajdeepv pushed a commit to rajdeepv/appium-uiautomator2-server that referenced this pull request Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants