wait_for_selector
Waits for a web element matching a CSS selector to appear or reach a specified state (attached, detached, visible, hidden) in an Electron application, returning element count and bounding box data.
Instructions
Wait until an element matching a selector appears (or reaches a given state: attached/detached/visible/hidden). Returns element count and the bounding box of the first match so you do not need a follow-up eval. Honours timeoutMs (default 5000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| state | No | Default visible. | |
| timeoutMs | No | Default 5000. |