Great, thank you Andy! I have to be wiser with my searches over watir.rb .___.
Thanks again and bye bye! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Sipe Sent: Jueves, 11 de Mayo de 2006 02:28 p.m. To: [email protected] Subject: Re: [Wtr-general] [question] Accesing CHECKED propertie forCheckboxes? isSet? is the method you are looking for -- it'll tell you if a radiobox or checkbox is 'checked'. -andy ----Original Message Follows---- From: "Rodrigo Julian Martin" <[EMAIL PROTECTED]> Reply-To: [email protected] To: <[email protected]> Subject: [Wtr-general] [question] Accesing CHECKED propertie for Checkboxes? Date: Thu, 11 May 2006 14:00:51 -0300 Hi all! I am using the iterator of checkboxes in order to clear all the checkboxes in a page... $browser.checkboxes.each do |check| check.clear end But, this is taking too much processing time... I was thinking that maybe if I check if the checkbox is CHECKED, this could be done in less time... But, I can't access the .checked propertie of a checkbox right? I've tried this: $browser.checkboxes.each do |check| if check.checked==true then check.clear end end and the output was: test_mejoratiempo:12: undefined method `checked' for #<Watir::CheckBox:0x2e09620> (NoMethodError) from test_mejoratiempo:11:in `each' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2108:in `upto' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2108:in `each' from test_mejoratiempo:11 Execution completed with exit code 1. Anyway, do you think this could reduce the processing time? Should I touch Watir.rb in order to see this CHECKED propertie? Thanks in Advance Cheers, Rodrigo Julian Martin _______________________________________________ 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
