← ClaudeAtlas

testdrivercaptchalisted

Solve captchas using 2captcha service
testdriverai/testdriverai · ★ 242 · Testing & QA · score 71
Install: claude install-skill testdriverai/testdriverai
<!-- Generated from captcha.mdx. DO NOT EDIT. --> # Captcha Solving TestDriver can automatically solve captchas during your tests using the 2captcha service. This feature works on both **Linux** and **Windows** sandboxes. ## Quick Start ```javascript const result = await testdriver.captcha({ apiKey: process.env.TWOCAPTCHA_API_KEY, }); console.log(result.success); // true console.log(result.token); // The solved captcha token ``` That's it! TestDriver will automatically: - Detect the captcha type on the page - Extract the sitekey - Solve the captcha via 2captcha - Inject the token into the page - Trigger any callbacks ## Supported Captcha Types | Type | Auto-Detected | Notes | |------|---------------|-------| | reCAPTCHA v2 | ✅ | Including invisible | | reCAPTCHA v3 | ✅ | Action is auto-detected | | hCaptcha | ✅ | | | Cloudflare Turnstile | ✅ | | ## Getting a 2captcha API Key 1. Sign up at [2captcha.com](https://2captcha.com) 2. Add funds to your account 3. Copy your API key from the dashboard ## Configuration Options ```javascript const result = await testdriver.captcha({ // Required apiKey: '2CAPTCHA_API_KEY', // Optional - usually auto-detected sitekey: '6Le...', // Override auto-detected sitekey type: 'recaptcha_v3', // Override auto-detected type action: 'submit', // reCAPTCHA v3 action // Timing timeout: 120000, // Max wait time (default: 120s) pollInterval: 5000, // Poll interval (defa