Wait for Element
chrome_wait_for_elementWait for a CSS selector to match an element before continuing, handling dynamic content loading. Specify a timeout and require visibility to keep automated Chrome tests reliable.
Instructions
Wait for an element to appear on the page.
Waits until a CSS selector matches an element. Useful for handling dynamic content loading.
Args:
selector (string): CSS selector to wait for (required)
timeout (number): Maximum wait time in ms (default: 10000)
visible (boolean): Wait for element to be visible (default: true)
Returns: Success/failure status.
Examples:
Wait for grid: { selector: ".dx-datagrid-content" }
Wait for modal: { selector: ".dx-popup-content", timeout: 5000 }
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": "chrome_wait_for_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Maximum wait time in milliseconds | |
| visible | No | Wait for element to be visible (default: true) | |
| selector | Yes | CSS selector to wait for |