---
title: "mouse | Grafana k6 documentation"
description: "Browser module: page.mouse method"
---

# mouse

Returns the [Mouse](/docs/k6/latest/javascript-api/k6-browser/mouse/) instance to interact with a virtual mouse on the page.

### Returns

Expand table

| Type                                                      | Description                                    |
|-----------------------------------------------------------|------------------------------------------------|
| [Mouse](/docs/k6/latest/javascript-api/k6-browser/mouse/) | The `Mouse` instance associated with the page. |

### Example

JavaScript ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

````javascript
import { browser } from 'k6/browser';

export const options = {
  scenarios: {
    browser: {
      executor: 'shared-iterations',
      options: {
        browser: {
          type: 'chromium',
        },
      },
    },
  },
};

export default async function () {
  const page = await browser.newPage();

  await page.goto('https://test.k6.io/browser.php');
  await page.mouse.down();
}
```ß
````
