innerText of specified DOM elements. Unlike textContent, innerText is aware of styling and only returns text that is rendered on screen.
See: MDN HTMLElement.innerText
Command Type
Command Type ID: 9Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| elementsLocator | ElementsLocator | Specifies the criteria to locate target elements | Yes |
| timeout | number | Timeout in milliseconds | Yes |
ElementsLocator
| Field | Type | Description | Required |
|---|---|---|---|
| selector | string | CSS selector | Yes |
| continueWith | ElementsLocator | Continue search within found element | No |
| hasChildren | ElementsLocator | Filter elements with matching children | No |
| index | number | Select element by index | No |
| innerText | string | Filter by inner text | No |
Usage Examples
Get All Button Labels
Related Commands
- Get Text Contents - Raw
textContent(includes hidden text) - Get Elements - Full element representation