browser_wait_for_selector
Wait for a CSS selector to reach a specified state—visible, hidden, attached, or detached—with a configurable timeout, enabling reliable synchronization before interacting with page elements.
Instructions
Wait for an element to reach a given state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Target state | visible |
| timeout | No | Timeout in milliseconds | |
| selector | Yes | CSS selector of the element |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |