Selenium capture IE and Edge console log

Viewed 608

I'm able to use:

let browserLog = await browser.manage().logs().get('browser'); console.log(util.inspect(browserLog))

in chrome but, does not work for IE and Edge browsers.

Any suggestions?

1 Answers

You cannot. The only browser and driver that currently provides the console log is Chrome w/ Chromedriver. It may be added to the W3C Webdriver spec at a later date, follow this issue https://github.com/w3c/webdriver/issues/406

Related