Ron H
Ron H

Reputation: 159

Selenium capture IE and Edge console log

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?

Upvotes: 3

Views: 762

Answers (1)

Lucas Tierney
Lucas Tierney

Reputation: 2563

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

Upvotes: 2

Related Questions