titusfortner / webdrivers

Keep your Selenium WebDrivers updated automatically
MIT License
593 stars 111 forks source link

Support for driver flags? #209

Closed mockdeep closed 3 years ago

mockdeep commented 3 years ago

Summary

I have a bug that appears to be with geckodriver, but I'm not sure how to get flags through to the driver per their documentation. Is there a way to pass flags to the driver for better logging?

Expected Behavior

Tests run without issue.

Actual Behavior

Occasionally the first test to interact with the browser fails with:

Selenium::WebDriver::Error::UnknownError:
  Process unexpectedly closed with status 1
titusfortner commented 3 years ago

What code do you use to start your Selenium tests? You need to add log options to Firefox::Options instance as described in that geckodriver link. This is a Selenium question not an issue with the webdrivers code, so I'm closing the issue, but we can make sure you know where to pass in the info if you need more assistance.