简体   繁体   中英

require 'watir-webdriver' error

I am trying to use Watir with Rails, and installed it, and when I use it from irb, it works fine. But when I try to include it in rails application, as

require 'rubygems'
require 'watir-webdriver'

I get the following error:

LoadError (no such file to load -- watir-webdriver)

Some people had experienced the same problem, which was solved by using require 'rubygems', butin my case, the problem still persists. Any idea?

您是否在Rails根文件夹的Gemfile中添加了gem'watir-webdriver'?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM