Skip to content

PlaywrightBrowser: uncaught javascript errors are missing from the console log #200

Description

@kbond

Playwright reports uncaught javascript errors as a pageerror event, separate from console messages, and playwright-php does not expose it yet. They are therefore missing from saveConsoleLog(), dumpConsoleLog() and saveCurrentState(), which are exactly the places you would want them.

can_dump_console_log_with_throw_error in PlaywrightBrowserTest is skipped until the event is available. The subscription would sit next to the existing onConsole() one in PlaywrightBrowser::__construct().

Blocked on playwright-php exposing the event.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions