wait_for_element
Waits for a specified element to appear on the webpage using a CSS selector, with optional visibility checks and timeout settings, ensuring precise control in web automation tasks.
Instructions
Wait for an element to appear on the page
Input Schema
Name | Required | Description | Default |
---|---|---|---|
selector | Yes | CSS selector to wait for | |
timeout | No | Maximum time to wait in milliseconds | |
visible | No | Wait for element to be visible |
Input Schema (JSON Schema)
{
"properties": {
"selector": {
"description": "CSS selector to wait for",
"type": "string"
},
"timeout": {
"description": "Maximum time to wait in milliseconds",
"type": "number"
},
"visible": {
"description": "Wait for element to be visible",
"type": "boolean"
}
},
"required": [
"selector"
],
"type": "object"
}