Actions17
Click
AI-generatedSummary
Click an element on a web page remote-controlled via a browser automation session, optionally waiting for navigation after the click.
Inputs
- Session ID — Optional session ID to continue an existing browser session; leave empty to start a new session automatically.
- Selector (required) — CSS selector string identifying the element to click.
- Button — Mouse button to click: left (default), right, or middle.
- Click Count — Number of times to click; defaults to 1.
- Delay — Delay in milliseconds between mousedown and mouseup events.
- Force — Whether to force the click action even if the element is not visible or interactable; defaults to false.
- Modifiers — List of keyboard modifiers to hold during the click (e.g., Alt, Control, Meta, Shift).
- Position — Optional JSON object defining the click position within the element (e.g., coordinates).
- Timeout — Maximum wait time in milliseconds for the click action; defaults to 30000 ms.
- Wait For Navigation — Whether to wait for page navigation event after the click; defaults to false.
- Wait Until — Event to wait for if waiting for navigation occurs: 'load', 'domcontentloaded', or 'networkidle'; defaults to 'load'.
Output shape
a single JSON object per input item containing the click result message, previous page URL (old_url), and new page URL (new_url, null if unchanged).
The output includes a 'session_id' field for continuing the browser session in subsequent actions. Errors may be thrown on failure unless 'Continue On Fail' is enabled.
Examples
Example 1: Clicking a button with selector '#submit'
Set Selector to '#submit', Button to 'left', Click Count to 1, and optionally specify Session ID if continuing a session.