0
irb(main):011:0> require 'watir/WindowHelper'

LoadError: cannot load such file -- watir/WindowHelper from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:i    
n `require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:i    
n `rescue in require'from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:i    
n `require'from (irb):11 from C:/Ruby193/bin/irb:12:in `<main>'    

我在尝试时收到此错误

require 'watir/WindowHelper'

谁能告诉我为什么会发生这种情况以及解决方案?单击下载文件的链接时,我无法处理 IE 弹出窗口。

4

1 回答 1

0

Watir wiki 有一堆使用弹出窗口的示例 - http://wiki.openqa.org/display/WTR/Pop+Ups

于 2012-06-25T11:49:46.803 回答