Command Type
Command Type ID: 2Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| selector | string | CSS selector to identify the element(s) to click | Yes |
| scrollable | boolean | If true, attempts to scroll the element into the viewport before clicking | Yes |
| spread | number | Randomness of mouse movement within the element (0–100) | Yes |
| timeout | number | Timeout for the command in milliseconds | Yes |
| filters | Filters | Optional criteria to refine element selection | No |
| selectorChangedOnClick | boolean | Whether the selector changes after clicking | No |
| viewportAreaPercentage | number | Portion of the viewport considered as the active area (0–100). Defaults to 100 | No |
Filters Object
| Field | Type | Description | Required |
|---|---|---|---|
| className | string | Filter elements by class name | No |
| includeInnerText | Array of string | Include only elements whose inner text contains these strings | No |
| excludeInnerText | Array of string | Exclude elements whose inner text contains these strings | No |
Usage Examples
Click a Button
Click with Inner Text Filter
Common Use Cases
- Human-Like Clicks: Simulate natural mouse movement and click to avoid detection
- Conditional Clicks: Click only elements matching a specific text
- Scrollable Targets: Click elements that are below the fold
Related Commands
- Move Mouse - Move mouse before clicking
- Click by Javascript - Programmatic JS click (no mouse simulation)