ConsoleMessage

Playwright\Console\ConsoleMessage

Methods

__construct()

function __construct( array $data, private readonly ?PageInterface $page = null, )

type()

string
function type(): string

text()

string
function text(): string

args()

array
function args(): array

location()

array
function location(): array

page()

?PageInterface

The page that emitted the message, or null for a message built without one.

function page(): ?PageInterface

timestamp()

int|float|null

When the message was emitted.

function timestamp(): int|float|null