# Verified autoreg flow: SPA signup + Turnstile + IMAP code (2026-09-10) End-to-end verified pattern for registering accounts on React-SPA dashboards gated by Cloudflare Turnstile, with email verification codes pulled via IMAP. Proven on dashboard.proxyscrape.com (Premium trial: 100 DC proxies / 10GB / 7 days, no card). ## The working stack 1. **Headed Chrome + CDP + FRESH profile** (launched via terminal background=true): ``` chrome.exe --remote-debugging-port=9333 --user-data-dir="C:/Users/User/tmp/" --no-first-run --proxy-server="direct://" "" ``` Then Playwright `connect_over_cdp("http://127.0.0.1:9333")` (Python 3.11, `PYTHONPATH=""`). 2. **Turnstile auto-solves** in this setup (contrary to older notes — auto mode passed on proxyscrape AND rainproxy). Poll readiness: ```python v = await pg.evaluate("document.querySelector('[name=cf-turnstile-response]')?.value?.length || 0") # >10 == solved (~773 chars) ``` 3. **Fill fields by id/selector**, then submit via **JS click only** — chat widgets (Intercom) intercept pointer events: ```python await pg.evaluate("document.querySelector('button[type=submit]').click()") ``` JS-click works when Turnstile is the gate. It does NOT satisfy reCAPTCHA-gated submits (webshare.io silently no-ops — reCAPTCHA v2 sitekey-bound; anti-captcha services returned "site key is invalid" for V2/V3/Enterprise tasks). ## IMAP verification-code extraction pitfalls - **Codes may be HEX, not digits.** ProxyScrape sends `Here is your email verification code: c23c52d636` (10-char hex). Regex `\b\d{6}\b` over raw email matches CSS junk (`555555` etc.) → "Incorrect verification code". Strip `