-
-
Notifications
You must be signed in to change notification settings - Fork 759
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
add custom locator strategy #1041
Conversation
It looks like the linter is not very happy |
* @since Appium 1.9.2 | ||
*/ | ||
default T findElementByCustom(String selector) { | ||
return findElement(MobileSelector.IMAGE.toString(), selector); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why MobileSelector.IMAGE
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question why IMAGE ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was a mistake; I changed it to CUSTOM
|
||
public interface FindsByCustom<T extends WebElement> extends FindsByFluentSelector<T> { | ||
/** | ||
* Performs the lookup for a single element by sending a selector to a custom element finding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be handy to put a link to some online document here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about promises that I will add documentation soon? :-)
* @since Appium 1.9.2 | ||
*/ | ||
default List<T> findElementsByCustom(String selector) { | ||
return findElements(MobileSelector.IMAGE.toString(), selector); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
the travis failure is because of some ios webview issue:
|
Docs PR: appium/appium#11544 |
doc links added, though of course they will 404 till new docs are published (which should happen before the next java client publish i imagine, so i think it's ok to merge now) |
👍 |
Add the locator strategy in the client to go with appium/appium-base-driver#268.
I based this PR on #990 so hopefully it's OK.