berstend / puppeteer-extra

💯 Teach puppeteer new tricks through plugins.
https://extra.community
MIT License
6.37k stars 737 forks source link

[Bug] puppeteer-extra-plugin-recaptcha detects that the challenge popup is open, but isn't. #906

Open djereg opened 1 month ago

djereg commented 1 month ago

Describe the bug

The pluging detects that the invisible recaptcha v2 has an active challenge popup, but the popup is not visible.

Versions

System:
    OS: Linux 6.8 Ubuntu 24.04 LTS 24.04 LTS (Noble Numbat)
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11700F @ 2.50GHz
    Memory: 35.70 GB / 62.63 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 21.7.2 - ~/.nvm/versions/node/v21.7.2/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v21.7.2/bin/npm
  npmPackages:
    puppeteer: 22.11.2 => 22.11.2
    "puppeteer-extra": "^3.3.6",
    "puppeteer-extra-plugin-anonymize-ua": "^2.4.6",
    "puppeteer-extra-plugin-recaptcha": "^3.6.8",
    "puppeteer-extra-plugin-stealth": "^2.11.2",
djereg commented 1 month ago

Did some research and discovered, that the challenge frame is in viewport, however the container div is not (top: -10000px) but the iframe yes DOMRect {"x": 1, "y": 1, "width": 1263, "height": 150, "top": 1, "right": 1264, "bottom": 151, "left": 1}

You can check it here: https://recaptcha-demo.appspot.com/recaptcha-v2-invisible.php