在装有 Windows 7 Ultimate 的笔记本电脑上,我正在关注http://watir.github.com/watirbook/chap04.html#installation ...上的在线 Watir 入门。
我已经按照页面上的说明安装了 ruby、devkit、watir。这看起来不错:
C:\Users\Afshin>ruby -v
ruby 2.0.0p0 (2013-02-24) [i386-mingw32]
C:\Users\Afshin>gem -v
2.0.0
但是,仍然按照在线导师页面的说明,给了我以下信息:
C:\Users\Afshin>irb
DL is deprecated, please use Fiddle
irb(main):001:0> require "watir"
=> true
irb(main):002:0> browser = Watir::Browser.new
LoadError: cannot load such file -- watir-classic
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-4.0.2/lib/watir/loader.rb:48:in `load_driver'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-4.0.2/lib/watir/loader.rb:40:in `load_driver_for'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-4.0.2/lib/watir/loader.rb:8:in `new'
from (irb):2
from C:/Ruby200/bin/irb:12:in `<main>'
非常感谢任何和所有帮助!