Selenium WebDriver no longer produces useful JavaScript console messages
Capybara is currently set to dump the contents of STDERR from the JavaScript console whenever an RSpec test fails. However, this appears to have broken recently, and now it will reliably produce something like the following message inistead:
1.2) Failure/Error: console = page.driver.browser.manage.logs.get(:browser)&.reject { |log| log.message =~ JS_CONSOLE_FILTER }
Selenium::WebDriver::Error::WebDriverError:
unexpected response, code=404, content-type="text/plain"
unknown command: session/e50f45f3242fb037ccdf1a00bd4d0dc7/se/log
# ./vendor/ruby/2.6.0/gems/selenium-webdriver-3.142.6/lib/selenium/webdriver/remote/http/common.rb:98:in `create_response'
# ./vendor/ruby/2.6.0/gems/selenium-webdriver-3.142.6/lib/selenium/webdriver/remote/http/default.rb:114:in `request'
# ./vendor/ruby/2.6.0/gems/selenium-webdriver-3.142.6/lib/selenium/webdriver/remote/http/common.rb:64:in `call'
# ./vendor/ruby/2.6.0/gems/selenium-webdriver-3.142.6/lib/selenium/webdriver/remote/bridge.rb:167:in `execute'
# ./vendor/ruby/2.6.0/gems/selenium-webdriver-3.142.6/lib/selenium/webdriver/remote/oss/bridge.rb:587:in `execute'
# ./vendor/ruby/2.6.0/gems/selenium-webdriver-3.142.6/lib/selenium/webdriver/chrome/bridge.rb:55:in `log'
# ./vendor/ruby/2.6.0/gems/selenium-webdriver-3.142.6/lib/selenium/webdriver/common/logs.rb:32:in `get'
This is a pretty major hinderance to debugging frontend issues, so I'm marking it as a ~S3 issue.