hyperstack icon indicating copy to clipboard operation
hyperstack copied to clipboard

hyper-spec throws uninitialized constant Selenium::WebDriver::Firefox::Service

Open mpantel opened this issue 4 years ago • 1 comments

When upgrading to hyper-spec i get a strange

uninitialized constant Selenium::WebDriver::Firefox::Service

although i don't user Selenium::WebDriver::Firefox::Service anywhere in my code (only references to Selenium::WebDriver::Firefox)

A solution i have found and according to https://github.com/titusfortner/webdrivers

Is to try and execute:

Webdrivers::Geckodriver.update

in rails console.

This updates the local Geckodriver automatically

as @catmando noted, if hyper-spec is both in test and development environment 'rails c' might be unusable so remove it temporarilly from the dev env

mpantel avatar Feb 20 '21 20:02 mpantel

I just experienced this too when upgrading to latest edge with rails 6. I know hyper-spec patches that class, and I'm wondering if it's not properly auto loading that constant now with rails new constant loader.

A fix I found is to have gem "webdrivers" before hyper-spec in my Gemfile.

adamcreekroad avatar Feb 25 '21 20:02 adamcreekroad