playwright_wait_for_selector
Waits for a CSS selector to reach a specified state, such as visible or hidden, with an optional timeout to synchronize browser automation and testing steps.
Instructions
Wait for an element to appear
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": {
"selector": "<selector>"
},
"name": "playwright_wait_for_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| timeout | No | Timeout in ms | |
| selector | Yes | CSS selector to wait for |