selenium: [π Bug]: Selenium Manager not working on FreeBSD
What happened?
I have selenium-webdriver 4.15.0 installed in a Rails application. I have RSpec configured to use :selenium, which I understand to mean firefox/geckodriver, not chromedriver:
RSpec.configure do |config|
config.before(:each, type: :system) do
driver = :selenium
driven_by(driver)
end
end
When I remove the selenium cache, and re-run my system spec, a new chromedriver is downloaded instead of the geckodriver.
> tree ~/.cache/selenium
/Users/gd/.cache/selenium
βββ chromedriver
βΒ Β βββ mac-arm64
βΒ Β βββ 119.0.6045.105
βΒ Β βββ chromedriver
βββ se-metadata.json
4 directories, 2 files
> rm -rf ~/.cache/selenium
> tree ~/.cache/selenium
/Users/gd/.cache/selenium [error opening dir]
0 directories, 0 files
When I run this spec Chrome opens, even though I configured my RSpec for Firefox:
> be rspec spec/system/home_spec.rb
.
Finished in 4.49 seconds (files took 2.95 seconds to load)
1 example, 0 failures
At this point selenium-webdriver has reinstalled chromedriver even though I configured my RSpec for geckodriver:
> tree ~/.cache/selenium
/Users/gd/.cache/selenium
βββ chromedriver
βΒ Β βββ mac-arm64
βΒ Β βββ 119.0.6045.105
βΒ Β βββ chromedriver
βββ se-metadata.json
4 directories, 2 files
How do I get selenium-webdriver to download and use geckodriver instead of chromedriver?
How can we reproduce the issue?
Make a Rails app and configure it to use geckodriver. Please follow the example above.
Relevant log output
I have no logs, all output is shown above.
Operating System
macOS 14.0
Selenium version
selenium-webdriver 4.15.0
What are the browser(s) and version(s) where you see this issue?
Chrome 119
What are the browser driver(s) and version(s) where you see this issue?
chromedriver 119
Are you using Selenium Grid?
no
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- [py] allow bsd operating systems to use the linux binary Log warning that it may not be supported Throw exception if the OS is not supported See: #13161 — committed to SeleniumHQ/selenium by titusfortner 7 months ago
- [rb] allow Selenium Manager to work with Unix Include warning since user must set compatibility mode in a supported Unix flavor fixes #13161 — committed to RevealOscar/selenium by titusfortner 7 months ago
- [py] allow bsd operating systems to use the linux binary Log warning that it may not be supported Throw exception if the OS is not supported See: #13161 — committed to RevealOscar/selenium by titusfortner 7 months ago
This is why for as much as I like Ruby, I get really frustrated with the Rails approachβ¦
is calling
which calls from
actionpack
:which defaults to:
Turn on
Selenium::WebDriver.logger.level = :debug
and it should show where the request for Chrome is coming from.