Wait for selector
dev_browser_wait_for_selectorWaits for a CSS selector on a specific page to reach a desired state (e.g., visible, attached) before proceeding, ensuring the page is ready for the next action.
Instructions
Wait until a selector reaches the given state on a named page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| browser | No | Named daemon-managed browser instance. Default: DEV_BROWSER_BROWSER or 'default'. | |
| connect | No | Attach to a running Chrome instance. true/auto-discover, or a CDP URL like http://localhost:9222. | |
| headless | No | Launch daemon Chromium without a window. | |
| pageName | No | Named page to reuse across calls. Default: "main". | |
| selector | Yes | CSS selector. | |
| timeoutMs | No | Wait timeout. Default: 10000. | |
| timeoutSeconds | No | Script execution timeout in seconds. Default: 30. | |
| ignoreHttpsErrors | No | Ignore HTTPS certificate errors for daemon-launched Chromium. |