Element (detailed)
Referenced In
Fields
| Field | Type | Description | Default |
|---|---|---|---|
| elementText | string | Optional. Display text or regex pattern (enclosed in forward slashes) of the element. If combined with selector, the element must match both the text and the selector. | — |
| selector | string | Optional. Selector of the element. If combined with elementText, the element must match both the text and the selector. | — |
| elementId | string | Optional. ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax. | — |
| elementTestId | string | Optional. data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax. | — |
| elementClass | one of: - string - array of string | Optional. Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes. | — |
| elementAttribute | object | Optional. Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence. | — |
| elementAria | string | Optional. Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax. | — |
| timeout | integer | Optional. Max duration in milliseconds to wait for the element to exist. | 5000 |
Examples
{"elementText": "example","selector": "example","elementId": "example","elementTestId": "example","elementClass": "example","elementAttribute": {},"elementAria": "example","timeout": 5000}