Implement page.on('response')
#1153
Labels
feature
A new feature
playwright
Issue relating to Playwright compatibility
user request
Requested by the community
Feature Description
When the browser module navigates to a website, the browser (Chrome etc.) will perform further requests to retrieve dependencies such as js files, images, css files and so on. With
page.goto
, the response that is returned to the caller is for the initial navigation to the the website. This response object doesn't contain any response details for the dependency requests that are made after the initial navigation.A response of the dependencies is useful so that fine grained checks can be made:
Thresholds
can be used for this too, but having something inline with the code feels like it could be beneficial since programmatic actions can be taken when dependency responses are retrieved or aren't retrieved.Suggested Solution (optional)
Already existing or connected issues / PRs (optional)
#1227
The text was updated successfully, but these errors were encountered: