title: Capturing browser logs with Selenium WebDriver using Java
body: <p>Is there a way to capture browser logs while running automated test cases with Selenium? I found an article on <a href="https://web.archive.org/web/20130719045503/http://selenium.polteq.com/en/capturing-javascript-errors-with-selenium-webdriver/" rel="noreferrer">how to capture JavaScript errors in Selenium</a>. But that is just for Firefox and only for errors. I would like to get all the console logs.</p>