wait_for_element
Waits for a UI element to appear in the DOM using CSS selectors, handling asynchronous page loading and dynamic content changes during automated testing.
Instructions
Wait for an element to appear in the DOM. Useful for handling async UI states.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector to wait for | |
| timeout | No | Timeout in milliseconds. Default: 5000 |
Input Schema (JSON Schema)
{
"properties": {
"selector": {
"description": "CSS selector to wait for",
"type": "string"
},
"timeout": {
"default": 5000,
"description": "Timeout in milliseconds. Default: 5000",
"type": "number"
}
},
"required": [
"selector"
],
"type": "object"
}