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

request.response() returns null when working with page.on('request') #4302

Open
ankur22 opened this issue Jan 30, 2025 · 0 comments
Open

request.response() returns null when working with page.on('request') #4302

ankur22 opened this issue Jan 30, 2025 · 0 comments

Comments

@ankur22
Copy link
Contributor

ankur22 commented Jan 30, 2025

Brief summary

While implementing page.on('request') it became apparent that there was a shortfall with how request.Response() was implemented. In Playwright this method will wait for the response to be received and completed so that when it is called from the page.on('request') handle it returns a valid non-bull value. At the moment k6 browser doesn't wait for the response from the website under test and returns null straight away.

k6 version

NA

OS

NA

Docker version and image (if applicable)

NA

Steps to reproduce the problem

NA

Expected behaviour

Returns a valid response object.

Actual behaviour

Returns null.

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

No branches or pull requests

2 participants