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

iOS Class Chain locator strategu #2

Open
titusfortner opened this issue Jun 22, 2018 · 2 comments
Open

iOS Class Chain locator strategu #2

titusfortner opened this issue Jun 22, 2018 · 2 comments
Milestone

Comments

@titusfortner
Copy link
Member

XPath is inherently slow for iOS, so Watir's general approach of converting a locator hash into an XPath to locate elements in a DOM won't be performant. We will need to create an iOS specific locator class for Class Chains (and/or Predicate Strings). See: https://appiumpro.com/editions/8

@titusfortner titusfortner added this to the 1.0 milestone Jun 22, 2018
@KazuCocoa
Copy link

KazuCocoa commented Jun 22, 2018

Appium uses facebook/WebDriverAgent as a backend driver for over iOS 9 (xcuitest automation name)

https://github.com/facebook/WebDriverAgent/wiki/How-To-Achieve-The-Best-Lookup-Performance will help you to understand which strategy is heavy to lookup.

@titusfortner
Copy link
Member Author

Yeah, essentially we'll want to create a ClassChain class that implements these methods: https://github.com/watir/watir/blob/master/lib/watir/locators/element/selector_builder/xpath.rb

It's going to be interesting figuring out how to properly deal with implementations that are browser/driver dependent (which Watir doesn't have to deal with)

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

No branches or pull requests

2 participants