开发者

Installing watir-webdriver on firefox

开发者 https://www.devze.com 2023-01-18 18:39 出处:网络
I try to install watir-webdriver on fedora linux. I ran this commands : cat << EOF > /etc/yum.repos.d/ruby.repo

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 -- wa开发者_如何学运维tir-webdriver (LoadError)
 from ./firewatir:3:in `<main>'

Can somebody help me ?


Since you've installed the library as a gem, you need to load Rubygems before watir-webdriver, i.e.:

require "rubygems"
require "watir-webdriver"
0

精彩评论

暂无评论...
验证码 换一张
取 消