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.

recaptcha methods are missing on initial browser's page

See original GitHub issue

Consider this example

	//const page = await browser.newPage();
	const pages = await browser.pages();
	const page = pages[0];

	await page.goto('https://dmitriy.in.ua/');

	const frames = page.mainFrame().childFrames();
	const frame = frames[0];
	console.log(await frame.findRecaptchas());

	await browser.close();

It doesn’t work, the error is:

(node:2074386) UnhandledPromiseRejectionWarning: TypeError: frame.findRecaptchas is not a function

But if you switch to newPage() method (which is used in tutorial) instead of using the current page, everything would work.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
shamsuzzamansadicommented, Dec 9, 2020

@berstend I meant I’ve fixed the formatting not the error. 😆 So I’m still having issues with the puppeteer extra plugin solveRecaptcha.

0reactions
berstendcommented, Mar 5, 2021

I had the same error of @shamsuzzamansadi, page.solveRecaptchas is not a function.

I already tried that approach that you commented @berstend, but I’ve received the other error TypeError: page.url is not a function too.

That error message indicates that your problem is something else or you’re not using the fix correctly? (page.url() is a pptr native thing)

Can you post a minimal example that shows this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

FIX: reCAPTCHA not working in Chrome, Firefox, or any browser
One of the methods discussed in this guide to fix reCAPTCHA not working issue in Chrome, Firefox, Edge, etc browser, is sure to...
Read more >
How To Fix reCAPTCHA Not Working in Chrome, Firefox, And ...
Step 1: Open Chrome and click on the three dots icon in the toolbar. Select Settings.
Read more >
Fix: Recaptcha not Working in Google Chrome - Appuals.com
Method 1: Update Chrome to the latest version · Open Google Chrome and click the action button (three-dot icon) in the top-right corner....
Read more >
reCAPTCHA Help - Google Support
reCAPTCHA is a free service from Google that helps protect websites from spam and abuse. A “CAPTCHA” is a turing test to tell...
Read more >
reCAPTCHA Not Working Safari - Ways Of Troubleshooting
If reCAPTCHA is not working on your Safari browser, there may be a problem with your computer or device that's preventing it from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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