require selenium-webdriver does not work?

45 views
Skip to first unread message

Sivanagamahesh Gorijala

unread,
Dec 27, 2017, 1:45:21 AM12/27/17
to webdriver
I am getting blunders when I utilize require "selenium-webdriver" in irb. I am utilizing Ruby 2.2.1 x64 on Windows 7 x64 and I have introduced the selenium webdriver pearl in C:\Ruby221-x64\lib\ruby\gems\2.2.0\gems 

The blunders are as per the following 

irb(main):002:0> require "selenium-webdriver" 

LoadError: can't load such record - selenium-webdriver 

from C:/Ruby221-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:5 

4:in `require' 

from C:/Ruby221-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:5 

4:in `require' 

from (irb):2 

from C:/Ruby221-x64/receptacle/irb:11:in `<main>' 

irb(main):003:0> require "selenium-webdriver" 

LoadError: can't load such record - selenium-webdriver 

from C:/Ruby221-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:5 

4:in `require' 

from C:/Ruby221-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:5 

4:in `require' 

from (irb):3 

from C:/Ruby221-x64/receptacle/irb:11:in `<main>' 

irb(main):004:0>
 
For any suggestions provide me?

darrell grainger

unread,
Dec 29, 2017, 12:49:17 PM12/29/17
to webdriver
This sounds more like a problem with your Ruby set up. On my system, if I go to a shell (I'm using macOS) and enter gem list --local it shows a list of the gems that my install of Ruby knows about. If I go into irb and enter require "selenium-webdriver" it works fine for me.

Check out a support group for Ruby. Tell them your problem is that you cannot require a gem. The fact that the gem is selenium-webdriver is irrelevent. It will be more about how your Ruby is installed, environment variables, how gems are installed, etc.

Darrell
Reply all
Reply to author
Forward
0 new messages