@silentaki12/google-recaptcha
v1.0.3
Published
A simple recaptcha handler.
Readme
@silentaki12/google-recaptcha
A simple helper class to click the reCAPTCHA checkbox iframe on a Puppeteer page.
Installation
npm install @silentaki12/google-recaptchaUsage
import RecaptchaPage from '@silentaki12/google-recaptcha';
// `page` is a Puppeteer Page instance
const recaptcha = new RecaptchaPage(page);
await recaptcha.clickRecaptcha();Notes
- This package works with iframe selector patterns commonly used by reCAPTCHA.
- If no matching iframe is found, the method exits without throwing.
- You need a Google reCAPTCHA test key/token configuration on your test page for this package to work reliably.
