Hi all, I have the following scenario: 1. start Firefox and go to the "my_page" 2. click on link => popup window is opened 3. attach to the popup window 4. select checkbox and click on <input type="button"> - the popup window is closed.
At this point the script exits and I get the following error: c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:1078:in `raise': exception class/object expected (TypeError) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:1078:in `js_eval' from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:530:in `wait' from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:1156:in `wait' from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:1145:in `click' I found on the forum how to change the firefox.rb file at line 1078 to if md = /^(\w+)Error:(.*)$/.match(value) klass = Class.new Exception Object.const_set "JS#{md[1]}Error", klass raise klass, md[2] end and than ran the script again. This time I got the following message: c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:1079:in `js_eval': window.getBrowser is not a function (JSTypeError) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:530:in `wait' from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:1156:in `wait' from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ MozillaBaseElement.rb:1145:in `click' from login.rb:92 I commented the call to wait() from MozillaBaseElement.rb > click() and everything was ok. Is there something I am doing wrong, or Firewatir does not support clicking on "auto-closing" buttons? Thanks, Alex --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---