even if setting a disabled checkbox? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Zeljko Filipin Sent: Friday, August 26, 2005 4:43 PM To: [email protected] Subject: Re: [Wtr-general] how to determine if checkbox is disabled
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 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
