Skip to content

Support for isSelected #199

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

Closed
codermannn opened this issue Feb 11, 2019 · 4 comments · Fixed by #203
Closed

Support for isSelected #199

codermannn opened this issue Feb 11, 2019 · 4 comments · Fixed by #203

Comments

@codermannn
Copy link

Currently there seems to be no Straightforward way to test elements like Switches and Checkboxes.
Could we have an isSelected() for the same?

http://appium.io/docs/en/commands/element/attributes/selected/

@SvetoslavTsenov
Copy link
Contributor

Hey @lohiarahul, the good news is that it is already available with the latest release of [email protected]

@codermannn
Copy link
Author

The isSelected() method tries to do a getAttribute("selected") on the UIElement and that throws an error for not being a valid attribute name. But with this version getAttribute("value") seems to work which returns a string representation of the boolean value

@SvetoslavTsenov
Copy link
Contributor

Let me test it on my side but it seems that you are right.

@lock
Copy link

lock bot commented Feb 23, 2020

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 Feb 23, 2020
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