SaeeK SaeeK - 1 year ago 89
Ruby Question

How to Print Browser console logs using Cucumber Ruby Automation?

Can you please help on printing the console logs generate in web browser for any errors in Cucumber Capybara Test Automation?
I am using PhantomJS webdriver as below:, :browser => :phantomjs,
desired_capabilities: { 'phantomjs.cli.args' =>

I want to capture Browser JS console logs and print it while i need on automation execution

Answer Source

Since you're using selenium you can try


Note: I've never tried it with PhantomJS as the browser

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download