clicks-recaptcha-solver
Version:
A powerful automation tool for solving Google reCAPTCHA challenges using Playwright and Puppeteer. This package intelligently detects and simulates human-like interactions, including mouse movements and precise clicks, to bypass reCAPTCHA v2 and other sim
16 lines (15 loc) • 879 B
TypeScript
/**
* Initializes a custom function within the captcha iframe to extract parameters.
*
* This function injects a script that extracts the required parameters from the captcha page.
* It creates a canvas to work with captcha images, extracts image tiles, and provides metadata like
* rows, columns, and a base64-encoded image of the current captcha state.
*
* @async
* @function initCaptchaParamsExtractor
* @param {import('puppeteer').Frame} frame - A Puppeteer frame representing the reCAPTCHA iframe.
* @returns {Promise<void>} This function doesn't return a value itself but adds a function (`getRecaptchaParams`)
* into the frame context to extract captcha parameters.
* @throws Will reject the promise if reCAPTCHA elements cannot be found on the page.
*/
export declare const initCaptchaParamsExtractor: (frame: any) => Promise<void>;