dore51 / puppeteer-recaptcha-solver

Puppeteer Recaptcha solver
https://www.npmjs.com/package/puppeteer-recaptcha-solver
MIT License
9 stars 0 forks source link

Failed to open iframe #8

Open webmip opened 1 year ago

webmip commented 1 year ago

When try with a different site used on the example we found problems in order to go into the iframe:

[INFO] Starting to solve captcha
[DEBUG] switching to captcha anchor iframe
[DEBUG] waiting for iframe "captcha iframe"
[DEBUG] found iframe "captcha iframe"
[DEBUG] waiting for sub element "captcha checkbox"
[ERROR] Failed to switch to iframe "captcha iframe": TimeoutError: Waiting for selector `#recaptcha-anchor` failed: Waiting failed: 5000ms exceeded
[ERROR] Failed to solve captcha: TimeoutError: Waiting for selector `#recaptcha-anchor` failed: Waiting failed: 5000ms exceeded
Captcha solved:  false

Looking the code both captchas look identical

dore51 commented 1 year ago

Hi, Can you please provide more information such as URL to check or the HTML?

webmip commented 1 year ago

Hi, cannot share the link because of privacy, but let me copy here the HTML iframe

<div><iframe title="reCAPTCHA" src="https://www.google.com/recaptcha/api2/anchor?ar=2&amp;k=6LReXsOY&amp;co=aHR0cHdvYi5lczo0NDM.&amp;hl=es&amp;v=MuIyrhJDQy37RPBe&amp;size=normal&amp;cb=jsfrqlv4" width="304" height="78" role="presentation" name="a-4cfjas555" frameborder="0" scrolling="no" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox"></iframe></div>