---
title: "up([options]) | Grafana k6 documentation"
description: "Mouse dispatches a `mouseup` event on the current position of the mouse."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# up(\[options])

Dispatches a `mouseup` event on the mouse’s current position. Mouse’s current position can be changed using [`mouse.move()`](/docs/k6/next/javascript-api/k6-browser/mouse/move/).

Expand table

| Parameter          | Type   | Description                                                                                              |
|--------------------|--------|----------------------------------------------------------------------------------------------------------|
| 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`.                                                            |

### Returns

Expand table

| Type            | Description                                                   |
|-----------------|---------------------------------------------------------------|
| `Promise<void>` | A Promise that fulfills when the mouse up action is complete. |
