Skip to content

Expose recorded page errors - #179

Open
smnandre wants to merge 1 commit into
playwright-php:mainfrom
smnandre:feat/page-errors
Open

smnandre wants to merge 1 commit into
playwright-php:mainfrom
smnandre:feat/page-errors

Conversation

@smnandre

Copy link
Copy Markdown
Member

Add Page::pageErrors() to read recorded uncaught JavaScript errors, with PageErrorsOptions and immutable PageErrorInterface snapshots exposing name(), message() and stack(). Preserve native filtering and history clearing.

Existing callers are unchanged. Custom PageInterface implementations must add the new method.

Fixes #171.

@codecov

codecov Bot commented Sep 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose the recorded page errors

1 participant