Before you start
Use the CAPTCHA setup example to start a browser withanti_captcha.enabled: true and create a page-level cdp session. The snippets below use an async Playwright or Puppeteer session after navigating to your target.
The internal solver does not require an external provider key. To test it without another solver acting on the same challenge, start with disable_external_providers: true.
Manual solving
Wait for the challenge to appear, then send:Automatic solving
Include"turnstile" in anti_captcha.auto_captcha_types at startup. Attach solve event listeners, then start detection before navigating:
status: "started" confirms the background loop started. Observe failures and use a bounded wait for your page result. Keep the CDP session connected until the job completes.