WebDriver/RemoteProtocol/Logging

From MozillaWiki
Jump to: navigation, search

Here are some examples of how to get verbose output with various clients, revealing protocol-level browser activity.

Environment variables to set:

  • If you use Puppeteer: DEBUG=puppeteer:* (look for verbose logging in the Puppeteer README)
  • If you use Playwright: DEBUG=pw:* (example)

However you start a Remote Protocol session, you can also set a "remote.log.level" preference to "Trace" to see protocol activity.

Here is an example of enabling trace-level Firefox logs with a Puppeteer script