interface BrowserLog

A console.* call or an uncaught error from the page under test.

const log: BrowserLog = { type: 'error', text: 'TypeError: x is not a function', args: [] };
log.type; // 'error' — 'pageerror' marks an uncaught exception rather than a console call

Properties

type: string

The page console type (log/warning/error/info/debug), or pageerror.

text: string

The rendered single-line text. Always present.

args: unknown[]

The call's arguments, resolved to JSON values where the page could serialize them.

Usage

import { type BrowserLog } from "lib/api/index.ts";