OS Level Control

Performs a mouse click at the specified coordinates

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

Request

  • Base URL
    https://api.anchorbrowser.io
  • Auth
    API key in header anchor-api-key

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

    • breaking

      the request's body type changed from no type to object

    • warning

      removed subschema #2 from the request body allOf list

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the request property default value left was removed