-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
au.getElementsByName is undefined #163
Comments
In Appium-land, get element by name should really be thought of like get element by ID---names are taken to be unique since they are unique labels given to UI elements by the developer inside xcode. thus it doesn't make sense to get multiple elements by name. but:
|
It does. I have multiple |
@jlipps: that's not quite right. The accessibility label doesn't have to be unique at all. That's the reason I choose not to use the get element by ID variant of element discovery form the WDJP spec. It's even a little bit more messy. Apple choose to use the caption (e.g.) to pre-populate the element's name() but will overwrite it with the accessibility label if set in xcode. I'm currently working on the get elements by name implementation. Stay tuned. Will also invest some time today to document all this. |
Great, thanks for setting me straight, look forward to the upcoming changes. |
Get elements by name is ready to go... Working on the documentation part of it right now. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Why doesn't
@driver.find_elements :name, 'Sign In'
work?It appears that
au.getElementByName(...
is defined andau.getElementsByName(...
isn't.The text was updated successfully, but these errors were encountered: