question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Solving Recaptcha in Frame not working

See original GitHub issue

Im trying to solve an 9 Tile image recaptcha in an iframe by using: for (const frame of page.mainFrame().childFrames()) { await frame.solveRecaptchas(); } but it throws this error: (node:17336) UnhandledPromiseRejectionWarning: TypeError: frame.solveRecaptchas is not a function

Versions Used:

"puppeteer": "^5.4.1",
"puppeteer-extra": "^3.1.15",
"puppeteer-extra-plugin-recaptcha": "^3.2.0",

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Alfagun74commented, Nov 13, 2020

Okay @berstend now i see the problem:

I wanted to avoid that the browser starts with an about:blank page so i used: const page = (await browser.pages())[0]; (see https://github.com/puppeteer/puppeteer/issues/2040#issuecomment-366295221)

when i use await browser.newPage() it works fine

1reaction
Alfagun74commented, Nov 13, 2020

thanks a lot ❤

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frame.recaptcha and puppeteer.use not valid functions?
Error:TypeError: solveRecaptchas is not a funcion. This is my code: for (const frame of page.mainFrame().childFrames()) ...
Read more >
reCaptcha 2.0 solving inside Frame - Bablosoft
It seems although the captcha solving is working, it waits some 'response' because the captcha iframe itself resides in its parent <div> (BAS ......
Read more >
Frequently Asked Questions | reCAPTCHA - Google Developers
I'd like to run automated tests with reCAPTCHA. What should I do? ... For reCAPTCHA v3, create a separate key for testing environments....
Read more >
Puppeteersharp - Captcha solving within an iFrame not working
I'm using the same package, but in Puppeteersharp, here. Replicating in C# would be something like the following. foreach (var frame in page....
Read more >
Bypassing CAPTCHAs with Headless Chrome - Jarrod Overson
If your CAPTCHA is not ready then you'll receive a “CAPTCHA_NOT_READY” response which indicates you need to try again in a second or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found