Skip to content

✨ feat(crawler): add flexible headless wait strategies for SPAs#1499

Merged
harehare merged 3 commits intomainfrom
feat/crawler-headless-wait-strategies
Mar 26, 2026
Merged

✨ feat(crawler): add flexible headless wait strategies for SPAs#1499
harehare merged 3 commits intomainfrom
feat/crawler-headless-wait-strategies

Conversation

@harehare
Copy link
Copy Markdown
Owner

Introduce ChromiumWaitConfig to replace the single fixed-delay approach with three composable strategies:

  • network_idle: waits for the CDP networkIdle lifecycle event
  • wait_for_selector: polls until a CSS selector appears in the DOM
  • fixed_delay: applies an unconditional delay after other strategies

Introduce `ChromiumWaitConfig` to replace the single fixed-delay
approach with three composable strategies:

- `network_idle`: waits for the CDP `networkIdle` lifecycle event
- `wait_for_selector`: polls until a CSS selector appears in the DOM
- `fixed_delay`: applies an unconditional delay after other strategies
@harehare harehare merged commit 70db177 into main Mar 26, 2026
4 checks passed
@harehare harehare deleted the feat/crawler-headless-wait-strategies branch March 26, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant