ElementsLocator and clicks them programmatically via JavaScript’s element.click().
Command Type
Command Type ID: 3Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| elementsLocator | ElementsLocator | Defines how to locate the target elements | Yes |
| timeout | number | Timeout for the command in milliseconds | Yes |
ElementsLocator
| Field | Type | Description | Required |
|---|---|---|---|
| selector | string | CSS selector (used with document.querySelectorAll()) | Yes |
| continueWith | ElementsLocator | Continue search within the found element | No |
| hasChildren | ElementsLocator | Filter elements that have children matching this locator | No |
| index | number | Select a specific element by index when multiple match | No |
| innerText | string | Filter elements by inner text | No |
Usage Examples
Click a Tab
Click by Inner Text
Related Commands
- Mouse Click On Elements - Human-like mouse click
- Wait For DOM Element - Wait before clicking