waitForSelector
Pause execution until a specified HTML element appears on the webpage, ensuring synchronization in browser automation tasks. Input includes a CSS selector and optional timeout.
Instructions
Wait for a specific selector to appear on the page
Input Schema
Name | Required | Description | Default |
---|---|---|---|
selector | Yes | ||
timeout | No | Timeout in milliseconds (default: 30000) |
Input Schema (JSON Schema)
{
"properties": {
"selector": {
"type": "string"
},
"timeout": {
"description": "Timeout in milliseconds (default: 30000)",
"type": "number"
}
},
"required": [
"selector"
],
"type": "object"
}