How to check whether radio button is enabled or disabled

295 views
Skip to first unread message

Sandeep Brahmadevara

unread,
Aug 13, 2010, 7:30:19 AM8/13/10
to seleniu...@googlegroups.com
Hi,

I need to check whether a radio button is enabled or disabled using Selenium RC. Can any one please help me?

For disabled one's the disabled property is disabled but how to check for enabled radio button?

Thanks,
Sandeep.

Marcus Döring

unread,
Aug 17, 2010, 11:38:33 AM8/17/10
to Selenium Users
do you mean by "enabled" that is is selected? or that it can be
selected?
and if you can check for a disabled radio-button you also can check
for an enabled one.


On 13 Aug., 13:30, Sandeep Brahmadevara <sandy.flexi...@gmail.com>
wrote:

Kiran S

unread,
Aug 18, 2010, 2:04:56 PM8/18/10
to Selenium Users
Sandeep,

You can use selenium.isChecked("id") to check whether a radio button
is enabled or not. it returns a boolean.

Kiran

On Aug 13, 4:30 pm, Sandeep Brahmadevara <sandy.flexi...@gmail.com>
wrote:

Sandeep Brahmadevara

unread,
Aug 31, 2010, 2:50:54 AM8/31/10
to seleniu...@googlegroups.com
Thanks Marcus & Kiran. It helped me in resolving my issue.

Regards,
Sandeep Brahmadevara.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


Kiran S

unread,
Aug 31, 2010, 2:09:31 PM8/31/10
to Selenium Users
Great!!

On Aug 31, 11:50 am, Sandeep Brahmadevara <sandy.flexi...@gmail.com>
wrote:
> > selenium-user...@googlegroups.com<selenium-users%2Bunsubscribe@go oglegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages