How to log network requests made when a Playwright test runs
page.on('request', request =>
console.log('>>', request.method(), request.url()));
How to log network responses received when a Playwright test runs
page.on('response', response =>
console.log('<<', response.status(), response.url()));
Sources
Comments
Join the discussionNo comments yet. Be the first to comment.