mihai
Sat, 09 Jun 2007 06:34:38 -0700
i search with a script all buttons on a page; if the name of a button is btnG
then it must puts OK else NO
the code is:
$ie.buttons.each do |bbtns|
puts bbtns.name
if bbtns.name.equal?('btnG')
then puts 'OK'
else puts 'NO'
end
puts bbtns.value
puts
$i=$i+1
end
but the output is: btnG NO Google Search btnI NO I'm Feeling Lucky NO Download Google Toolbar what im doing wrong? tnx _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general