require: cannot load such file -- selenium-webdriver (LoadError) on Ubuntu

Hi,

 

From irb 'require selenium-webdrive' returns true and from RubyMine I get the following error.

require': cannot load such file -- selenium-webdriver (LoadError)

Ruby path:  ~/.rvm/rubies/ruby-2.3.3/bin/ruby

IRB path:  ~/.rvm/rubies/ruby-2.3.3/bin/irb

From RubyMine setting the Ruby interpreter path is the same.

Why I get an error while require 'selenium-webdriver' from a Ruby code inside the RubyMine ?

bundle info selenium-webdriver returns the following:

~/.rvm/gems/ruby-2.3.3/gems/selenium-webdriver-3.6.0

Please help me to fix this issue.

 

Thanks.

 

 

 

 

0

Please let me know what should I change in RubyMine settings or in project configuration to fix this problem. 

I can run the project code from command line, so all the packages and gems are installed.

 

0

Hello,

have you specified the gem in question in your Gemfile?

0

I have installed selenium-webdriver gem.

sudo gem install selenium-webdriver
[sudo] password for khachatryan:
Successfully installed selenium-webdriver-3.11.0
Parsing documentation for selenium-webdriver-3.11.0
Done installing documentation for selenium-webdriver after 1 seconds
1 gem installed

 

Could you please answer on matter of my problem. How to configure IntelliJ so it will run Ruby code with selenium?

Why I get the following error while I am trying to run a Ruby code with 

require 'selenium-webdriver'

require': cannot load such file -- selenium-webdriver (LoadError)

 

 

0

Without sudo can't install

$ gem install selenium-webdriver
ERROR: Loading command: install (LoadError)
libssl.so.1.0.0: cannot open shared object file: No such file or directory - /usr/local/home/khachatryan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/x86_64-linux/openssl.so
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass

 

0

Can you please help me with resolving this issue?

 

0

请先登录再写评论。