# element.mouseRelease

> Documentation index: https://frontend-tools.coherent-labs.com/llms.txt lists every page of this documentation as Markdown; the full text is in https://frontend-tools.coherent-labs.com/llms-full.txt.

Source: https://frontend-tools.coherent-labs.com/e2e/api/domelement/interactions/mouserelease/

## element.mouseRelease(button: 'left'|'right'|'middle', options?: Object): Promise<void>

Simulates a `mouseup` event on the element.

- **`button`**: **`(Default = 'left')`** Specifies the mouse button that will be used for the event.
- **`options.altKey`**: Indicates if the Alt key is pressed.
- **`options.ctrlKey`**: Indicates if the Ctrl key is pressed.
- **`options.metaKey`**: Indicates if the Meta key is pressed.
- **`options.shiftKey`**: Indicates if the Shift key is pressed.
- Returns a promise that resolves when the mouse event is complete.

## Usage

```js
describe('Test script', function () {
    it('Test 1', async () => {
        const element = await gf.get('.my-button');
        await element.mouseRelease();
    });
});
```

**Note:** Mouse releasing on text elements is not supported.
