veil_wait_for
Poll a JavaScript expression in the page until it becomes truthy, replacing fixed sleep intervals. Returns when the condition holds; errors on timeout.
Instructions
Poll a JS expression in the page until it is truthy, instead of a fixed sleep — e.g. "document.querySelector('.results')". Returns when the condition holds; errors on timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll | No | ms between checks (default 100) | |
| timeout | No | ms before giving up (default 10000) | |
| expression | Yes |