Actions17
Wait for Stable
AI-generatedSummary
Wait until the page DOM stabilizes by monitoring changes to the specified selector or the entire DOM, ensuring content is fully loaded and settled before proceeding.
Inputs
- Session ID — Session ID from previous action to continue the same session; leave empty to start a new session automatically.
- Stable Duration — Duration in milliseconds that the DOM or element must remain unchanged to be considered stable (default 500ms).
- Poll Interval — Interval in milliseconds between DOM or element checks for changes (default 100ms).
- Timeout — Maximum time in milliseconds to wait for stability before timing out (default 30000ms).
- Selector — CSS selector specifying the element to monitor for stability; if empty, the whole page DOM is monitored.
- Check Mode — Method to detect stability (e.g., 'size' to measure size changes); default is 'size'.
Output shape
a single JSON object containing a message, the final size at stability, the time in milliseconds after which stability was detected, and the number of checks performed.
If the DOM or selected element stabilizes before the timeout, the node returns details about the stabilization. If stability is not reached within the timeout, an error may be raised unless continueOnFail is enabled.
Examples
Example 1: Ensure dynamic SPA content is fully rendered and stable before extracting data or taking further actions.
Specify an optional CSS selector to monitor specific elements and configure stable duration, poll interval, and timeout to control how quickly the node determines page stability.