wait_for
Wait for a specified CSS selector element to appear in the DOM, then return its tag name and text content. Solves the problem of interacting with dynamically loaded content by ensuring the element is present before proceeding.
Instructions
Wait for an element to appear in the DOM. Returns the element's tag name and text content when found. Use this to wait for dynamic content to load before interacting with it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of the element to wait for | |
| url | No | Optional URL to navigate to before waiting | |
| timeout | No | Maximum wait time in ms (default: 10000) | |
| visible | No | Wait for element to be visible, not just in DOM (default: false) |