我使用Windows上的Watir當我的腳本嘗試在Firefox上運行,我看到我的控制檯上的錯誤:測試的Watir拋出JsshSocket :: JSReferenceError
JsshSocket::JSReferenceError: Components is not definedReferenceError: Components is not defined
C:/xampp/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/jssh_socket.rb:12:in `js_eval'
C:/xampp/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:195:in `goto'
C:/xampp/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/firefox.rb:164:in `start'
C:/xampp/Ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.5/lib/watir/browser.rb:71:in `start'
./test.rb:12:in `test_prepare'
會出現這種情況給其他人?我能做些什麼來解決它?
我需要更多信息。 Windows,Ruby,Firefox版本,鏈接到您使用的jssh插件,導致錯誤的代碼。您也可以將問題發佈到http://groups.google.com/group/watir-general。 – 2010-04-06 08:41:04