How to identify if a radio button is selected or not ? or alternatively how to identify if a radioButton has been selected. #1966
harimadusumilli
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Taiko along with Gauge against an Angular App.
I can do radioButton('text').select() to click a specific radio button.
But in my case lets say the page is loaded with a pre-checked radio button and I need to know if it has been checked or not ? Is there an API that can do it. Currently I don't think it can. I tried looking at various attributes to do something like radioButton({id:'myButton', class:'someClass'}).exists() it returns true if the attributes are present, but don't know how to identify if the radioButton is selected or not.
Any suggestion or advise will be helpful.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions