wait_for_element
Wait for a specific element to appear on a webpage using CSS selectors, handling dynamic content loading and React applications with configurable timeout and browser support.
Instructions
Wait for an element to appear on the page (useful for dynamic React content)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
browser | No | Browser engine to use | chromium |
selector | Yes | CSS selector to wait for | |
timeout | No | Maximum time to wait in milliseconds | |
url | Yes | URL to monitor |
Input Schema (JSON Schema)
{
"properties": {
"browser": {
"default": "chromium",
"description": "Browser engine to use",
"enum": [
"chromium",
"firefox",
"webkit"
],
"type": "string"
},
"selector": {
"description": "CSS selector to wait for",
"type": "string"
},
"timeout": {
"default": 10000,
"description": "Maximum time to wait in milliseconds",
"type": "number"
},
"url": {
"description": "URL to monitor",
"type": "string"
}
},
"required": [
"url",
"selector"
],
"type": "object"
}