【发布时间】:2010-04-04 12:19:55
【问题描述】:
我在 Windows 上使用 Watir,当我的脚本尝试在 Firefox 上运行时,我在控制台上看到此错误:
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 插件,导致错误的代码。您也可以将问题发布到groups.google.com/group/watir-general。
标签: ruby firefox integration-testing watir jssh