Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement page.on('console') to be able to assert on logs #835

Closed
4 tasks done
Tracked by #1460
ankur22 opened this issue Mar 23, 2023 · 0 comments
Closed
4 tasks done
Tracked by #1460

Implement page.on('console') to be able to assert on logs #835

ankur22 opened this issue Mar 23, 2023 · 0 comments
Assignees
Labels
feature A new feature user request Requested by the community

Comments

@ankur22
Copy link
Collaborator

ankur22 commented Mar 23, 2023

Feature Description

There has been a request to be able to assert on logs. The use case is for when a user want to assert that something has occurred, but that something can only print to the console with console.log, and there is nothing on the site itself that can be used. When something is logged, we should be able to bring that to the attention of the user who can compare it against an expected string.

Suggested Solution (optional)

page.on('console') -> https://playwright.dev/docs/api/class-page#events

Already existing or connected issues / PRs (optional)

No response

Tasks

  1. Area: browser
    ka3de
  2. documentation
    ka3de
  3. area: browser
    ka3de
@ankur22 ankur22 added feature A new feature user request Requested by the community labels Mar 23, 2023
@ka3de ka3de self-assigned this Aug 14, 2023
@ka3de ka3de closed this as completed Oct 10, 2023
@inancgumus inancgumus mentioned this issue Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature user request Requested by the community
Projects
None yet
Development

No branches or pull requests

2 participants