Dynamic CAPTCHA Solving
Learn about Unblocking Browser CAPTCHA detection and solving mechanisms and how to use them.
window.postMessage({action: 'solve_captcha', type: '<captcha type>'}, '*')// ...
await page.click('#form-submit');
// Now we know that CAPTCHA should be shown
await page.evaluate(() => {
window.postMessage({action: 'solve_captcha', type: 'recaptcha'}, '*')
});
// Follow `oxylabs-captcha-start` and `oxylabs-captcha-end` events like a regular case
// ...// We know that our next action may trigger Turnstile CAPTCHA
await page.evaluate(() => {
window.postMessage({action: 'solve_captcha', type: 'turnstile'}, '*')
});
await page.click('#form-submit');
// Follow `oxylabs-captcha-start` and `oxylabs-captcha-end` events like a regular case
// ...Last updated
Was this helpful?

