Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/frame/evaluatehandle.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/k6/latest/javascript-api/k6-browser/frame/evaluatehandle/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
evaluateHandle(pageFunction[, arg])
Executes JavaScript code in the page and returns the value of the pageFunction invocation as a
JSHandle.
The only difference between page.evaluate() and page.evaluateHandle() is that page.evaluateHandle() returns
JSHandle.
| 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 |
Returns
| Type | Description |
|---|---|
Promise<JSHandle> | The JSHandle instance associated with the frame. |
Was this page helpful?
Related resources from Grafana Labs

