Cromedriver `driver.manage.logs.get(:browser)` fails on chromedriver 75.0.3770.8
Chrome 75 defaults to W3C mode, which doesn't specify a way to get log access.
The short term fix for this issue is to disable w3c
via chromeOptions
.
Capybara.register_driver :headless_chrome do |app|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
chromeOptions: { args: %w[headless window-size=1280,800], w3c: false },
)
Capybara::Selenium::Driver.new app,
browser: :chrome,
desired_capabilities: capabilities
end
Capybara 3.24 now works around this issue when used with chromedriver >= 75.0.3770.90
As specified in the release notes for Chrome Driver 75, capability loggingPrefs
has been renamed to goog:loggingPrefs
, as required by W3C standard. Thus, the code setting the capabilities should be adjusted and there will be no necessity of falling back to non-w3c mode at least due to the log capturing reason.