Watir不适用于Ruby 1.9.3

时间:2011-12-01 06:24:14

标签: ruby

我将Ruby升级到1.9.3,并且watir停止了工作。有没有人遇到同样的问题?

更新 watir依赖于ffi,只需要解决这个问题。

1 个答案:

答案 0 :(得分:1)

它对我有用:

C:\Ruby193\bin>ruby -v
ruby 1.9.3p0 (2011-10-30) [i386-mingw32]

C:\Ruby193\bin>gem list watir
*** LOCAL GEMS ***
watir (2.0.4)

C:\Ruby193\bin>irb

irb(main):001:0> require "watir"
=> true
irb(main):002:0> browser = Watir::Browser.new
C:/Ruby193/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:4: Use RbConfig instead of obsolete and deprecated Config.
=> #<Watir::IE:0x..f867b09ec url="about:blank" title="">
irb(main):003:0>