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

Android button text vs name issue #226

Closed
bootstraponline opened this issue Mar 6, 2013 · 1 comment · Fixed by #232
Closed

Android button text vs name issue #226

bootstraponline opened this issue Mar 6, 2013 · 1 comment · Fixed by #232

Comments

@bootstraponline
Copy link
Member

I have a button called 'Sign In'. On iOS I find it using .name. Android errors with IndexOutOfBoundsError when finding name. The name is instead in .text.

> b = e_buttons
post
session/9c9468c4-5f79-418c-947d-d811653a17aa/elements
{"using":"tag name","value":"button"}

> b.first.text
get
session/9c9468c4-5f79-418c-947d-d811653a17aa/element/4/text
null
=> "Sign In"

> b.first.name
get
session/9c9468c4-5f79-418c-947d-d811653a17aa/element/4/attribute/name
null
Selenium::WebDriver::Error::IndexOutOfBoundsError: 
@jlipps jlipps closed this as completed Mar 6, 2013
dpgraham pushed a commit to dpgraham/appium that referenced this issue Oct 1, 2018
dpgraham pushed a commit to dpgraham/appium that referenced this issue Nov 7, 2018
@lock
Copy link

lock bot commented May 4, 2019

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.

@lock lock bot locked and limited conversation to collaborators May 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants