Classes
Methods
(async) run(selector, text) → {Promise.<void>}
Adds text to an element using a unified selector string. Supports CSS selectors (default), and prefix-based strategies: 'id:myId', 'xpath://input', 'name:email', 'class:input-field'.
Parameters:
| Name | Type | Description |
|---|---|---|
selector | string | The selector string. CSS by default, or use a prefix. |
text | string | The text string to add. |
Throws:
- Throws an error if the element is not found.
- Type
- Error
Returns:
A promise that resolves when the text has been added.
- Type:
- Promise.<void>