Can Not click captcha checkbox using puppeteer

Viewed 743

I cannot seem to click the captcha checkbox using puppeteer on this site: https://patrickhlauke.github.io/recaptcha/

What is causing this?

page.waitFor(500);

await page.waitForSelector("#recaptcha-anchor");

await page.evaluate(() => {
    document.querySelector("#recaptcha-anchor").parentElement.click();
});
1 Answers

if you're still trying to do this, just use document.querySelector("iframe") or anything like that, this will probably help you because the first iframe in the page is the iframe containing the checkbox.

And you can click it!

Related