title: How to Print Browser console logs using Cucumber Ruby Automation?
body: <p>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:</p>
  
  <blockquote>
    <p>Capybara::Selenium::Driver.new(app, :browser => :phantomjs,
    desired_capabilities: { 'phantomjs.cli.args' =>
    ['--ignore-ssl-errors=yes']</p>
  </blockquote>
  
  <p>I want to capture Browser JS console logs and print it while i need on automation execution</p>