browser.wait_for_selector
Wait for a CSS selector to reach a specific state (visible, hidden, attached, detached) and return when condition is met, or raise an error on 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 |