This is documentation for the next version of K6. For the latest stable release, go to the latest version.
down([options])
Dispatches a mousedown
event on the mouse’s current position. Mouse’s current position can be changed using mouse.move()
.
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
Type | Description |
---|---|
Promise<void> | A Promise that fulfills when the mouse down action is complete. |