ie.checkbox(:id, "check_box_id").disabled

will return false if not disabled, true if disabled (works also for
other page elements that can be disabled).

Checking already checked check box does not raise error, just checks
it again (also unchecking already unchecked check box - just unchecks
it again).

Zeljko

2005/8/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> What's the best approach to know if a checkbox is disabled or not?
> I could try to set it then just catch the error. but is there a method or 
> something?
> 
> I'm using this site for reference http://wtr.rubyforge.org/rdoc/classes/Watir/
> but it seems this is outdated.
> 
> Is there any other link just like the one above? Thanks in advance.
> 
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to