Wait_for method?

Also, see this answer in another thread: Question on http.get - #6 by mark

You can generate a HAR file in Chrome, Firefox or other tools, which is a recording of the requests made in a user session of your app, and then use the k6 convert command to convert the HAR file to a k6 JS script, which can be run as usual.

See the following links for details: