[英]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. 我正在尝试将Watir与Rails一起使用,并进行安装,并且当我从irb使用它时,它工作正常。 But when I try to include it in rails application, as 但是当我尝试将其包含在Rails应用程序中时,
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. 有些人也遇到过同样的问题,可以通过使用require'rubygems'来解决,但就我而言,问题仍然存在。 Any idea? 任何想法?
您是否在Rails根文件夹的Gemfile中添加了gem'watir-webdriver'?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.