browser.wait_for_selector
Pause execution until a CSS selector reaches a target state (visible, hidden, attached, or detached), then continue or timeout.
Instructions
Wait for a CSS selector to reach a specific state (visible, hidden, attached, detached). Returns when the condition is met or raises on timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| selector | Yes | ||
| timeout_ms | No | ||
| state | No | visible |