WebError
Playwright\WebError\WebErrorInterface
Represents an unhandled page error. The exception comes from browser runtime code that did not handle it. A page is included when Playwright can associate the error with one.
Methods
error()
\ThrowableReturns the reported exception. The exception preserves the error type and message from the runtime. Inspect it to classify or report the unhandled browser error.
function error(): \Throwable
page()
?PageInterfaceReturns the originating page. A null result means the runtime did not associate the error with a page. The returned page can identify its URL or owning browser context.
function page(): ?PageInterface
location()
?arrayWhere the error was thrown, with zero-based line and column; null when the source position is unknown.
function location(): ?array