WebDriver/RemoteProtocol/Logging

From MozillaWiki
< WebDriver‎ | RemoteProtocol
Revision as of 20:09, 26 February 2021 by Whimboo (talk | contribs) (Whimboo moved page Remote/Logging to WebDriver/RemoteProtocol/Logging: Reorganization for WebDriver BiDi project documenation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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