Generalize page.on
events
#1227
Labels
feature
A new feature
next
Might be eligible for the next planning (not guaranteed!)
playwright
Issue relating to Playwright compatibility
user request
Requested by the community
Feature Description
We currently have
page.on('console')
which enables users to action on all console logs that the website under test logs. We have many community requests to add more event handling for other events. These event handling will enable users to perform more dynamic actions in their test when certain events occur which can help them capture, diagnose, and assert when things are not going well or are going well.Suggested Solution (optional)
In Playwright they have the following events on
page.on
:close
console
crash
dialog
domcontentloaded
download
filechooser
frameattached
framedetached
framenavigated
load
pageerror
popup
request
requestfailed
requestfinished
response
websocket
worker
Already existing or connected issues / PRs (optional)
#1153
Tasks
The text was updated successfully, but these errors were encountered: