I have an integration test setup that uses RSpec + Capybara. We recently switched from PhantomJS to headless Chromedriver and I miss that javascript errors are not displayed anymore.
Is there a convenient way of configuring Chromedriver so that javascript errors show up in the log output of capybara tests?
The ways of accessing the javascript errors I found (see below) all are a bit cumbersome or not really what I was looking for.
- setting an explicit log output path as described in this answer
- accessing the (kind of cut back) error log through the driver interface as described in this gist