watir-webdriver使用过程中异常

1.在jruby版本1.6.7中,报异常:not such file to load --watir-webdriver

解决方法 :在文件的首行添加:require 'rubygems'          # jruby 1.7.3中不需要添加

2.执行自动化中报异常:Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox connection in 60 seconds

解决方法: gem install selenium-webdriver

3.异常报错:[WARNING] MultiJson is using the default adapter (ok_json). We recommend loa

解决方法:gem install json-jruby

4. undefined local variable or method `be_true'

解决方法:gem install rspec -v="2.13.0"

原文地址:https://www.cnblogs.com/dami520/p/3169307.html