-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capybara cannot configure Firefox #2766
Comments
Seems like you're trying to set the window size on a non-existent session |
The issue is |
I tried the different combinations that snap installs since /usr/bin/firefox is just a wrapper to start these with snap:
The only one that worked to get past the not a firefox binary error was '/snap/bin/firefox' options = Selenium::WebDriver::Firefox::Options.new
options.binary = '/snap/bin/firefox'
service = Selenium::WebDriver::Service.firefox
service.executable_path = options.binary
puts "!!! #{`ls -l #{options.binary}`}"
driver = Selenium::WebDriver.for :firefox, service: service, options: options
Capybara.current_driver = driver While this gets me past the binary path not found errors and opens a firefox, I still get:
|
Meta
Capybara Version: 3.40.0
Driver Information (and browser if relevant):
Expected Behavior
Actual Behavior
Tests crash during Capybara configuration:
The before block:
Steps to reproduce
The text was updated successfully, but these errors were encountered: