Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/k6/next/javascript-api/k6-browser/mouse/move.md, or by sending Accept: text/markdown to https://grafana.com/docs/k6/next/javascript-api/k6-browser/mouse/move/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest version.
move(x, y[, options])
Mouse moves to the x and y coordinates. This is useful for simulating mouse movement. The step option is the number of steps the mouse will take to move from the current position to the target position. The higher the step count, the smoother the movement will be.
| Parameter | Type | Description |
|---|---|---|
| x | number | The x-coordinate to move to. |
| y | number | The y-coordinate to move to. |
| options | object | Optional. |
| options.steps | number | The number of steps to take to move the mouse. Default is 1. |
Returns
| Type | Description |
|---|---|
Promise<void> | A Promise that fulfills when the mouse up action is complete. |
Was this page helpful?
Related resources from Grafana Labs

