Change equal? to eql? or == and it 'll work. equal? compares object ids, eql? and == compare values.
-Charley On 6/9/07, mihai <[EMAIL PROTECTED]> wrote:
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
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general