我正在尝试在ubuntu上使用firewatir并且我收到以下错误:
irb(main):003:0> require 'firewatir'
LoadError: cannot load such file -- watir/exceptions
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from /var/lib/gems/1.9.1/gems/firewatir-1.9.4/lib/firewatir/exceptions.rb:1:in <top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /var/lib/gems/1.9.1/gems/firewatir-1.9.4/lib/firewatir.rb:5:in
'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in
rescue in require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in require'
from (irb):3
from /usr/bin/irb:12:in
'
有没有人知道为什么会这样?我忘了安装任何东西吗?
答案 0 :(得分:6)
Firewatir已弃用。要驱动Firefox,你应该安装watir-webdriver。有关安装说明,请参阅https://github.com/watir/watirbook/blob/master/installation/ubuntu.md