在 Firefox 上安装 watir-webdriver
我尝试在 fedora linux 上安装 watir-webdriver 。我运行了这个命令:
cat << EOF > /etc/yum.repos.d/ruby.repo
[ruby]
name=ruby for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/custom-f13-ruby/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
[ruby-extra]
name=ruby extra for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/feature-f13-ruby-1.9.1/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
EOF
yum -y --enablerepo=ruby,ruby-extra install ruby ruby-devel ruby-irb
gem update --system
gem install watir-webdriver
但是当我运行 官方网站 上提供的默认脚本时,但我有错误
./firewatir:3:in `require': no such file to load -- watir-webdriver (LoadError)
from ./firewatir:3:in `<main>'
有人可以帮助我吗?
I try to install watir-webdriver on fedora linux. I ran this commands :
cat << EOF > /etc/yum.repos.d/ruby.repo
[ruby]
name=ruby for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/custom-f13-ruby/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
[ruby-extra]
name=ruby extra for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/feature-f13-ruby-1.9.1/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
EOF
yum -y --enablerepo=ruby,ruby-extra install ruby ruby-devel ruby-irb
gem update --system
gem install watir-webdriver
But When I ran the default script which is available on official website but I have the error
./firewatir:3:in `require': no such file to load -- watir-webdriver (LoadError)
from ./firewatir:3:in `<main>'
Can somebody help me ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您已将库安装为 gem,因此需要在 watir-webdriver 之前加载 Rubygems,即:
Since you've installed the library as a gem, you need to load Rubygems before watir-webdriver, i.e.: