Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verify Selected Radio Button - Selenium IDE

I'd like to check if a radio button is selected or not with its id for instance.

Element that needs to be checked:

<input id="Evidence_of_Obstruction" class="" type="Radio" checked="" onclick="changeSaveStatus(this, "72");" value="0" name="Patency">
like image 932
user1398749 Avatar asked May 07 '26 01:05

user1398749


2 Answers

Command: assertValue Target: name='Patency' Value: on

or something quite similar to that. You can use the proposed commands in the Selenium IDE by right clicking on the radio button and chosing one of the commands.

like image 98
t3hn00b Avatar answered May 09 '26 15:05

t3hn00b


Using Selenium IDE I prefer element ids, which would be close to what t3hn00b suggested:

Command: assertValue Target: id=Evidence_of_Obstruction Value: on

like image 30
Mark Rogers Avatar answered May 09 '26 14:05

Mark Rogers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!