require 'watir-webdriver' error

怎甘沉沦 提交于 2019-12-13 05:52:30

问题


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?


回答1:


Did you add gem 'watir-webdriver' to your Gemfile in Rails root folder?



来源:https://stackoverflow.com/questions/8365555/require-watir-webdriver-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!