For exampel, I am doing stress testing of http://localhost/example.html
Welcome to the forum.
page.eval (documented here). Here’s an example.
Hi @inanc ,
Thank you so much for the help. I downloaded the git repo and went inside it and run the evaluate.js by following command but it is showing following error.
k6 run evaluate.js
ERRO GoError: unknown module: k6/x/browser
at go.k6.io/k6/js.(*InitContext).Require-fm (native)
at native hint=“script exception”
The screenshot is also attached below.
Please help me to fix this issue. Thank you so much in advance!
Sure thing! It seems xk6-browser hasn’t been correctly configured on your system. You can find the installation steps in this document. Let me know how it goes.