click(x, y[, options])
Open source
click(x, y[, options])
Mouse clicks on the x
and y
coordinates. It’s a shorthand for calling mouse.move(x, y)
followed by mouse.down()
and mouse.up()
. This is useful for simulating a single mouse click.
Parameter | Type | Description |
---|---|---|
x | number | The x-coordinate to click on. |
y | number | The y-coordinate to click on. |
options | object | Optional. |
options.button | string | The mouse button to click. Possible values are 'left' , 'right' , and 'middle' . Default is 'left' . |
options.clickCount | number | The number of times to click. Default is 1 . |
options.delay | number | The delay in milliseconds between mousedown and mouseup events. Default is 0 . |
Returns
Type | Description |
---|---|
Promise<void> | A Promise that fulfills when the mouse click action is complete. |
Was this page helpful?
Related documentation
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
16 Apr

Getting started with logging and Grafana Loki
See a demo of the updated features in Loki, and how to create metrics from logs and alert on your logs with powerful Prometheus-style alerting rules.
07 May

Loki at Dropbox: Strategies for reliable petabyte-scale logging
Engineers at Dropbox share hard-won lessons frorm scaling Grafana Loki to manage multi-petabyte unstructured logs for 1,000+ services.
08 May

7 features to get more out of Loki with Logs Drilldown in Grafana
We'll show you how to get the most out of Loki with Logs Drilldown, the queryless, point-and-click experience in Grafana that allows you to quickly find insights in your observability data - no queries or complicated syntax required.