request.response()
returns null
when working with page.on('request')
#4302
Labels
request.response()
returns null
when working with page.on('request')
#4302
Brief summary
While implementing
page.on('request')
it became apparent that there was a shortfall with howrequest.Response()
was implemented. In Playwright this method will wait for the response to be received and completed so that when it is called from thepage.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 returnsnull
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
.The text was updated successfully, but these errors were encountered: