Repeatedly click a button until no new content appears or max clicks reached. This function is useful for “Load More” buttons or paginated content where you need to keep clicking until all content is loaded. It provides several stopping conditions:Documentation Index
Fetch the complete documentation index at: https://intunedhq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
- Button becomes invisible/disabled
- Maximum number of clicks reached
- No change detected in container content (when container_locator is provided)
Examples
Arguments
Playwright Page object
Locator for the button to click repeatedly
Optional callback invoked after each click. Defaults to lambda: None.
Optional content container to detect changes. Defaults to None.
Maximum number of times to click the button. Defaults to 50.
Delay after each click (in seconds). Defaults to 0.5.
Minimum change in content size to continue clicking. Defaults to 0.