Classes
Methods
(async) run(selector, value, propertyopt) → {Promise.<void>}
Sets a property on an element using a unified selector string. Supports CSS selectors (default), and prefix-based strategies: 'id:myId', 'xpath://input', 'name:field', 'class:input-field'.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
selector | string | The selector string for the element. | ||
value | string | The value to set. | ||
property | string | <optional> | 'value' | The property to set: 'value', 'innerText', or 'innerHTML'. |
Throws:
- Throws an error if the element is not found.
- Type
- Error
Returns:
A promise that resolves when the property is set.
- Type:
- Promise.<void>