wait_for_react_state
Monitor React applications for state changes, data loading completion, or navigation events during web scraping and testing workflows.
Instructions
Wait for React component state changes, data loading, or navigation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
browser | No | Browser engine to use | chromium |
condition | Yes | Type of condition to wait for | |
selector | No | CSS selector or testID to wait for (for custom condition) | |
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"
},
"condition": {
"description": "Type of condition to wait for",
"enum": [
"hydration",
"navigation",
"data-loading",
"animation",
"custom"
],
"type": "string"
},
"selector": {
"description": "CSS selector or testID to wait for (for custom condition)",
"type": "string"
},
"timeout": {
"default": 15000,
"description": "Maximum time to wait in milliseconds",
"type": "number"
},
"url": {
"description": "URL to monitor",
"type": "string"
}
},
"required": [
"url",
"condition"
],
"type": "object"
}