Why are you making it to string and comparing with string
representation of TrueClass? You also had only one '=', which makes
your if to be always true.

Correct would be of course
if $ie.checkbox(:name,"blah").checked? == true
end

On Apr 3, 4:00 pm, "Darin Duphorn" <dduph...@redbrickhealth.com>
wrote:
> Sorry it was checked instead of set.  If you want to validate it true or
> false remember to set it to string.
>
> if $ie.checkbox(:name,"blah").checked?.to_s = 'true'
>
> end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to