ConsoleMessage
Playwright\Console\ConsoleMessage
Methods
__construct()
function __construct( array $data, private readonly ?PageInterface $page = null, )
type()
stringfunction type(): string
text()
stringfunction text(): string
args()
arrayfunction args(): array
location()
arrayfunction location(): array
page()
?PageInterfaceThe page that emitted the message, or null for a message built without one.
function page(): ?PageInterface
timestamp()
int|float|nullWhen the message was emitted.
function timestamp(): int|float|null