wait_for
Wait for an element to become visible, hidden, attached, or detached. Syncs automation with UI state to avoid flaky tests.
Instructions
Wait for an element to appear, disappear, or change visibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Wait until element is visible/hidden/attached/detached | visible |
| target | No | Which context to interact with | page |
| timeout | No | Timeout in milliseconds | |
| selector | Yes | CSS selector to wait for |