Solve CAPTCHA with Playwright

Automate CAPTCHA bypass in your Playwright tests and scrapers. Get seamless reCAPTCHA, hCaptcha, and Turnstile tokens with industry-leading 99.9% accuracy.

example.js
// Playwright + CaptchaSonic
import { test } from '@playwright/test';
import { solveCaptcha } from '@captchasonic/playwright';

test('login bypass', async ({ page }) => {
  await page.goto('https://example.com/login');
  
  const token = await solveCaptcha(page, {
    apiKey: 'YOUR_API_KEY',
    type: 'recaptcha-v2'
  });

  await page.evaluate((t) => {
    document.getElementById('g-recaptcha-response').innerHTML = t;
  }, token);
  
  await page.click('#submit-btn');
});

1Quick Installation

$ npm install @captchasonic/playwright

2Key Features for Playwright

Token-Native Solving

Forget manual clicks. Our API returns valid tokens directly to your Playwright context.

Browser Fingerprinting

Synchronize your Playwright headers with our solving environment to avoid detection.

Headless Optimization

Optimized specifically for Chromium, Firefox, and WebKit running in headless mode.

Explore Integrations