Skip to content
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
@hara-y-u

Description

@hara-y-u

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

ibrahima commented on Sep 18, 2018

@ibrahima
Contributor

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' in rails_helper.rb?

flavorjones

flavorjones commented on Sep 18, 2018

@flavorjones
Owner

@yukihr I can update the documentation to reflect this. Are you asking for other action to be taken?

flavorjones

flavorjones commented on Sep 18, 2018

@flavorjones
Owner

Oh, I understand now. Let me reproduce and update lib/chromedriver-helper.rb to require appropriate files.

flavorjones

flavorjones commented on Sep 18, 2018

@flavorjones
Owner

Will be fixed in v2.0.2 which I'll cut shortly.

flavorjones

flavorjones commented on Sep 19, 2018

@flavorjones
Owner

Correction, the new release will be v2.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @flavorjones@ibrahima@hara-y-u

        Issue actions

          NameError: uninitialized constant Chromedriver in rails & rspec config · Issue #65 · flavorjones/chromedriver-helper