This project exercises Selenium driver logging functionality. It works with embedded, but not yet with remote driver.
The browser should be specified in testng.config. Currently Chrome and Firefox are supported. The logging results vary.
(http://www.programcreek.com/java-api-examples/index.php?api=org.testng.ITestContext)
- ChromeDriver Capabilities
- [Capturing Browser logs with-Selenium] (http://stackoverflow.com/questions/25431380/capturing-browser-logs-with-selenium)