wait_for_selector
Pauses automation until a specified element appears, attaches, or changes visibility state on an Electron page, then continues once the selector condition is met.
Instructions
Wait for an element to appear on the page
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"selector": "<selector>"
},
"name": "wait_for_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| timeout | No | ||
| selector | Yes | ||
| sessionId | Yes |