Closed Johnsalzarulo closed 4 years ago
Couple updates:
A. Confirmed I have chromedriver
installed
B. Manually hunted down where it's installed in my OS
C. Added this to my paths
Hey @Johnsalzarulo, that error typically means that the gem was unable to execute the driver binary for some reason. It is unrelated to Webmock, DNS, or Chrome.
Can you undo step 5 (brew install
) and step C (add to path), and then try to manually extract the version from the downloaded file? Maybe even delete the existing chromedriver
file and redownload it using the gem before executing this:
Users/johnsalzarulo/.webdrivers/chromedriver --version
It should return version 78 dot something to match your Chrome version. If you're unable to execute it manually, whatever error you see in the terminal is what's causing the RuntimeError
.
@kapoorlakshya
Thank you so much for your support. Seriously people like you are what make the world a good place.
I gave it a shot based on your suggestions with no luck.
For some reason in trying to make things work, I tossed gem "chromedriver-helper"
into my gemfile and this got things up and running. I see it's depreciated but at the moment — I'm productive again when I remove it things crash again.
I'm closing the issue now, hopefully these breadcrumbs help others.
As well — at some point, I should probably dig deeper into my system to solve the root problem.
Thanks again so much. 👍
FWIW and for anyone landing here i solved this by running
$ rm -rf ~/.webdrivers # remove the webdrivers directory
$ RAILS_ENV=test bin/rails webdrivers:chromedriver:update
Summary
I've been stuck for hours trying to get my test suite to run on my local machine. I keep getting runtime errors. Details below.
Debug Info
Please provide the following information for bug reports:
gem "webdrivers", "~> 4.0"
ruby 2.5.0
MacOS 10.14.4
Chrome 78.0.3904.108
Expected Behavior
I would expect my tests to run without
RuntimeError
Actual Behavior
What I've Tried
test_helper.rb
config accordingly.For example:
I tried reboots
I tried uninstalling and reisntalling Chrome
I've tried reinstalling my chromedriver with
brew cask reinstall chromedriver
I've even tried disabling
Webmock
and I can't seem to get my tests to run. Just constant runtime erros.I tried updating my MacOS DNS servers, just in case there was something with networking that was funky.
I've tried it on multiple internet connections, just to ensure I had no firewall or proxy shenanigans.
Does anyone have any thoughts of what else I can try? Thanks so much