navigate
Navigate to a URL with optional auto-solve of captcha challenges and pre-injection of hooks. Supports wait conditions and response chain collection.
Instructions
Navigate to a URL, with optional hook pre-injection and captcha challenge auto-solve.
Args:
url: Target URL.
wait_until: "load", "domcontentloaded", or "networkidle".
pre_inject_hooks: Hook preset names to register before navigation.
collect_response_chain: Record responses for final_status resolution.
clear_network_capture: Clear stale network buffer before navigating.
auto_solve_challenge: After the page loads, run auto_solve_captcha if a
captcha challenge is detected. Built-in alternative to the
project's test.py flow.
captcha_type: Captcha provider (default "cloudflare"). Future-proof:
new providers supported by camoufox_captcha will be usable here.
challenge_type: "auto" (default), "interstitial", or "turnstile".
Forwarded to auto_solve_captcha when auto_solve_challenge=True.
challenge_ready_delay: Seconds to wait for the challenge iframe to mount
before clicking. Forwarded to auto_solve_captcha.
expected_content_selector: Optional CSS selector to wait for after solving.
Returns: dict with url, title, initial_status, final_status, redirect_chain, hooks_injected, reloaded, challenge (detection + solve result when auto_solve_challenge=True), warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| wait_until | No | load | |
| captcha_type | No | cloudflare | |
| challenge_type | No | auto | |
| pre_inject_hooks | No | ||
| auto_solve_challenge | No | ||
| challenge_ready_delay | No | ||
| clear_network_capture | No | ||
| collect_response_chain | No | ||
| expected_content_selector | No |