Difficulty with Radio Button already getting selected

45 views
Skip to first unread message

raje...@gmail.com

unread,
May 15, 2026, 7:42:13 AMMay 15
to Selenium Users
HI All,

I have a page with 5 radio buttons where one radio button will be selected by default on the page load.
As soon as I try to select other radio button for my test case, it unselected my selected radion button and selects the previous selected button while execution.
At the time of execution I see both the radio button getting selected at the side, which is not reporoducible whem I execute it manually.
Please let me know if you have faced similar situation and possible solution for the same?

NOTE: Xpath is having dynamic id but no name attribute as one of the thread suggested to use.

Thanks.
Rajeev

shashank jaiswal

unread,
Jun 2, 2026, 10:25:48 AM (10 days ago) Jun 2
to seleniu...@googlegroups.com
Before moving forward write recheck logic of radio button which you want to select. 

This how you make sure your test get pass. 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/selenium-users/fbfe54a4-33f8-4134-934b-93b6702d3873n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages