This repository was archived by the owner on Apr 1, 2019. It is now read-only.
This repository was archived by the owner on Apr 1, 2019. It is now read-only.
NameError: uninitialized constant Chromedriver in rails & rspec config #65
Closed
Description
Calling Chromedriver.set_version 'XXX'
in rspec config like rails_helper.rb
causes NameError: uninitialized constant Chromedriver
.
To resolve this, we need Gemfile line to be like:
gem 'chromedriver-helper', require: 'chromedriver/helper'
Environment: Rails 5.2.1, chromedriver-helper 2.0.1
Activity
ibrahima commentedon Sep 18, 2018
Ooh nice, I was trying to figure out how to do this yesterday since Chromedriver uploaded a beta version as the latest version and ran into this same issue. I suppose you could also just manually
require 'chromedriver/helper'
inrails_helper.rb
?flavorjones commentedon Sep 18, 2018
@yukihr I can update the documentation to reflect this. Are you asking for other action to be taken?
flavorjones commentedon Sep 18, 2018
Oh, I understand now. Let me reproduce and update
lib/chromedriver-helper.rb
to require appropriate files.flavorjones commentedon Sep 18, 2018
Will be fixed in v2.0.2 which I'll cut shortly.
flavorjones commentedon Sep 19, 2018
Correction, the new release will be v2.1.0.