hyperstack-org / hyperstack

Hyperstack ALPHA https://hyperstack.org
https://docs.hyperstack.org
MIT License
540 stars 41 forks source link

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

Open mpantel opened 3 years ago

mpantel commented 3 years ago

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

adamcreekroad commented 3 years ago

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.