Hi guru !

i has page with 111 checkboxes (for sample)
i need to clear all checkboxes by id regex

i wrote code
$ie.checkboxes.each do |c|
  next unless c.id =~ /ctl00_cph_rpt.*?Notif.*?_eml_ctl\d+_chkEmail/
 $ie.checkbox(:id,c.id).set
end

execution time = 68 seconds

but
$ie.elements(:id,/ctl00_cph_rpt.*?Notif.*?_eml_ctl\d+_chkEmail/).each
do |c|
 $ie.checkbox(:id,c.id).set
end

execution time = 3 second

maybe it's a bug ?

p.s. IE6/IE9 winxp/WIn7
ruby 1.8.7
watir 1.8.1



-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to