click_turnstile
Auto-finds and clicks Cloudflare Turnstile checkboxes using a three-tier detection strategy: primary selectors, secondary container search, and optional OpenCV template fallback.
Instructions
Auto-find and click the Cloudflare Turnstile checkbox.
Three-tier detection strategy:
1. Primary selectors: iframe[src*=challenges.cloudflare.com], [data-sitekey], .cf-turnstile
2. Secondary: .turnstile, input[name=cf-turnstile-response] → nearest sized container
3. Fallback (if fallback_template=True): OpenCV template match via verify_cf
— covers out-of-process iframe cases (e.g. nopecha.com/captcha/turnstile)
Args:
offset_x: pixels from widget left edge (default 30, calibrated for CF checkbox)
offset_y: vertical offset (default = container center)
fallback_template: if selectors fail, try OpenCV template click (default True)
Known to work on: 2captcha.com/demo/cloudflare-turnstile, dash.cloudflare.com login,
nopecha.com/captcha/turnstile (via template fallback).
Does NOT work on: Cloudflare managed-mode interstitials ("Just a moment..." full-page
challenges) — use solve_captcha or storage_state_load for those.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset_x | No | ||
| offset_y | No | ||
| fallback_template | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |