OS Level Control

Mouse Click

Performs a mouse click at the specified coordinates

post/v1/sessions/{sessionId}/mouse/click

Path parameters

sessionIdstring uuid required

The ID of the browser session

Request body

xnumber

X coordinate

ynumber

Y coordinate

button'left' | 'middle' | 'right'

Mouse button to use

selectorstring

A valid CSS selector for the requested element

timeoutnumber

If a selector was passed, timeout in ms for waiting for the DOM element to be selected. Defaults to 5000 (5 seconds).

indexnumber

If a selector was passed and multiple elements match the selector, the index of the element in the list (0-based). Defaults to 0.

Response

Click performed successfully

statusstring

Changes

Changed in 2 of the 33 revisions of this API.117

  • 122673e8fdcf116See the full diff
    • the request's body type/format changed from / to object/

      request-body-type-changed

    • removed CoordinatesRequestSchema subschema #2 from the request body allOf list

      request-body-all-of-removed

    • added the new optional request property button

      new-optional-request-property

    • added the new optional request property index

      new-optional-request-property

    • added the new optional request property selector

      new-optional-request-property

    • added the new optional request property timeout

      new-optional-request-property

    • added the new optional request property x

      new-optional-request-property

    • added the new optional request property y

      new-optional-request-property

    • the button request property default value left was removed

      request-property-default-value-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog