selenium webdriver - How to Print Browser console logs using Cucumber Ruby Automation? -
can please on printing console logs generate in web browser errors in cucumber capybara test automation? using phantomjs webdriver below:
capybara::selenium::driver.new(app, :browser => :phantomjs, desired_capabilities: { 'phantomjs.cli.args' => ['--ignore-ssl-errors=yes']
i want capture browser js console logs , print while need on automation execution
since you're using selenium can try
page.driver.browser.manage.logs.get("browser")
note: i've never tried phantomjs browser
Comments
Post a Comment