Bypass captchas in Puppeteer

Published Jan 21, 2026 Featured

Bypass Captchas in Puppeteer

Puppeteer is a Node.js library for browser automation. To bypass captchas:

  1. Integrate a captcha solver service Example: 2Captcha, Anti-Captcha, CapSolver.

  2. Detect captcha frames

    const frame = page.frames().find(f => f.url().includes('recaptcha'));
    
  3. Send sitekey + URL to solver Receive the token and inject it into the page.

  4. Submit the form Puppeteer can programmatically click the submit button after filling the token.

Puppeteer Stealth Plugin is recommended to evade bot detection.

Related Guides