Back to docs

Tool Get Console Messages

Category: Browser State Β· Tier: Free

Get browser console messages (log, warn, error, info) captured since last navigation.

Parameters

Parameter Type Required Default Description
filter string No "all" Filter by type: all, error, warning, log, info
clear boolean No false Clear captured messages after reading
_browserToken string No β€” Browser session token

Example

Check for JavaScript errors on the page
β†’ get_console_messages filter="error"

Related

From the Blog