← ClaudeAtlas

testdrivercaptchalisted

Solve captchas using 2captcha service
testdriverai/testdriverai · ★ 243 · Testing & QA · score 72
Install: claude install-skill testdriverai/testdriverai
<!-- Generated from captcha.mdx. DO NOT EDIT. --> # Captcha Solving TestDriver can solve captchas automatically during your tests. It uses the 2captcha service. This feature works on **Linux** sandboxes 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 is all. TestDriver does these automatically: - Finds the captcha type on the page - Gets the sitekey - Solves the captcha with 2captcha - Puts the token into the page - Starts the 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 int