Thanks! I know it will raise an exception somehow.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of saud aziz
Sent: Monday, August 29, 2005 1:17 PM
To: [email protected]
Subject: Re: [Wtr-general] how to determine if checkbox is disabledThis method sets the radio list item or check box.
Raises UnknownObjectException if its unable to locate an object ObjectDisabledException if the object is disabled
On 8/28/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:even if setting a disabled checkbox?
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On 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
--
"..man is a human being, not because of his physical powers for physically the camel is his superior; not because of his size for the elephant is larger; not because of his courage for the lion is more courageous; not because of his appetite for the ox has the greater; not because of coitus for the least of the birds is more virile than he, but rather by virtue of his noble aims and ideals. [As a matter of fact] he was only created to know." (Al- Ghazali; The book of Knowledge, Section 1)
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
