Clicking on Buster reCAPTCHA in Puppeteer

Hello to all! I really hope I could get some help with Puppeteer

temp

I tried to click using JS document.elementFromPoint(680, 370).click(); but no luck

Thanks for reading!!

Maybe try switching to the captcha’s iframe and then clicking on the element instead of giving the coordinates.

I found some people who want to do the same in selenium

I can’t believe I got a response from the LEGEND himself <3
Total noob question I’m sorry but how do I switch to the captcha frame, what’s the identifier

iframe title=“recaptcha challenge expires in two minutes” src=https://www.google.com/recaptcha/api2/bframe?hl=en&v=_exWVY_hlNJJl2Abm8pI9i1L&k=6LcYAR0UAAAAAKHuIWvmc0w8KMipllu9mNw_v-j0" name=“c-er6pd7kkr7gz” frameborder=“0” scrolling=“no” sandbox=“allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox” style=“width: 400px; height: 580px;”></iframe

temp

I remember that there was a problem with that specific block to switch the iframe in puppeteer. Please open an issue on github and I will investigate it. In the meantime you could write the js manually.

As for the identifier you can use a css selector or xpath on the title property of the iframe, to see if it contains a given text

1 Like

I can confirm its a problem with puppeteer, I had success on selenium OB1

You can use selenium in OB2 as well now. Puppeteer still has some problems, please open an issue on github and I will investigate.

You can do this after clicking on the last input field:

BLOCK:PuppeteerPageKeyPress
  key = "Tab"
ENDBLOCK

BLOCK:Delay
  milliseconds = 1000
ENDBLOCK

BLOCK:PuppeteerPageKeyPress
  key = "Tab"
ENDBLOCK

BLOCK:Delay
  milliseconds = 1000
ENDBLOCK

BLOCK:PuppeteerPageKeyPress
  key = "Enter"
ENDBLOCK

BLOCK:Delay
  milliseconds = 5000
ENDBLOCK

BLOCK:PuppeteerPageKeyPress
  key = "Tab"
ENDBLOCK

BLOCK:Delay
  milliseconds = 1000
ENDBLOCK

BLOCK:PuppeteerPageKeyPress
  key = "Tab"
ENDBLOCK

BLOCK:Delay
  milliseconds = 1000
ENDBLOCK

BLOCK:PuppeteerPageKeyPress
  key = "Enter"
ENDBLOCK
1 Like

ur captcha how u manage to click the check box to make the whole thing appear ?