Closed kristofenyi closed 1 year ago
@kristofenyi can you share how you solved this? Having the same problem (and when we ignore the relevant hosts, we're getting a crash in chromedrivers / selenium says chrome binary not found. Manually updating chromedriver via RAILS_ENV=test rails webdrivers:chromedriver:update
doesn't seem to help
I updated the wiki for this: https://github.com/titusfortner/webdrivers/wiki/Using-with-VCR-or-WebMock
The recommendation is to use Selenium 4.11 and do something like this so the Selenium Manager binary is not executed:
allow(Selenium::WebDriver::DriverFinder).to receive(:path).and_return('/path/to/driver')
If you're trying to skip everything driver related, can return nil and also mock the file assertions:
allow(Selenium::WebDriver:: Platform).to receive(:assert_file)
allow(Selenium::WebDriver:: Platform).to receive(:assert_executable)
Let me know what the actual use case is and if I can help further.
I guess I'll leave this closed because my current plan for webdrivers 6 is to wrap Selenium Manager directly. But if someone has a PR that makes this work, I'll look at it.
Thanks for response! Our plan is to upgrade to Ruby 3.0 so we can get the selenium-webdrivers up to 4.11 (from 4.9), but in the meantime we had to add "edgedl.me.gvt1.com" as well as "googlechromelabs.github.io" to the vcr ignore_hosts and then everything works - but it does seem slower than before -- haven't looked into it yet.
Summary
webdrivers 5.2 is unable to locate latest chromedriver
Net::HTTPServerException: 404 "Not Found" with https://chromedriver.storage.googleapis.com/115.0.5790.110/chromedriver_linux64.zip
webdrivers 5.3.1 makes http request toGET https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json
& failsDebug Info
Please provide the following information for bug reports:
It is probably my setting with not allowing calls to external urls from cassets. But i am getting