This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.
evaluate(pageFunction[, arg])
Returns the value of the pageFunction
invocation.
📢 Registration + agenda now live Explore the latest Grafana Cloud and AI solutions, learn tips & tricks from demos and hands-on workshops, and get actionable advice to advance your observability strategy. Register now and get 50% off - limited tickets available (while they last!).
Register nowProducts
LGTM+ Stack
Key Capabilities
Observability Solutions
IRM
Deploy The Stack
Open Source
Community resources
Dashboard templates
Try out and share prebuilt visualizations
Prometheus exporters
Get your metrics into Prometheus quickly
end-to-end solutions
Opinionated solutions that help you get there easier and faster
monitor infrastructure
Out-of-the-box KPIs, dashboards, and alerts for observability
visualize any data
Instantly connect all your data sources to Grafana
Learn
Stay up to date
Technical learning
Docs
Get started
Get started with Grafana
Build your first dashboard
Get started with Grafana Cloud
Learning Journeys
What's new / Release notes
Help build the future of open source observability software Open positions
Check out the open source projects we support Downloads
Deploy The Stack
end-to-end solutions
Opinionated solutions that help you get there easier and faster
visualize any data
Instantly connect all your data sources to Grafana
This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.
Returns the value of the pageFunction
invocation.
Parameter | Type | Defaults | Description |
---|---|---|---|
pageFunction | function or string | Function to be evaluated in the page context. This can also be a string. | |
arg | string | '' | Optional argument to pass to pageFunction |
Type | Description |
---|---|
Promise<any> | The value of the pageFunction invocation. |