berstend / puppeteer-extra

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

[Bug] findRecaptchas finds only one recaptcha on page with two recaptchas #679

Open gyp5y opened 2 years ago

gyp5y commented 2 years ago

Describe the bug On the onlyfans.com loginpage solveRecaptchas() finds only v2 recaptcha with ID 6LddGoYgAAAAAHD275rVBjuOYXiofr1u4pFS5lHn and not finds recaptcha V3 with ID 6LcvNcwdAAAAAMWAuNRXH74u3QePsEzTm6GEjx0J on the same page. So when V2 is solved "Submit" still checks both captchas and returns Wrong captcha

Code Snippet

              const navigationPromise = page.waitForNavigation()
              await page.waitForSelector('button[type=submit]')
              await page.type('input[name="email"]', login),
              await page.type('input[name="password"]', pass),
              await page.click("button[type=submit]")
              await page.waitForTimeout(3000);
              await page.solveRecaptchas();
              for (const frame of page.mainFrame().childFrames()) {
                    // Attempt to solve any potential captchas in those frames
                 await frame.solveRecaptchas()
              }

Versions

System: OS: macOS 11.6.6 CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz Memory: 64.95 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 18.4.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.12.1 - /usr/local/bin/npm npmPackages: playwright: ^1.23.2 => 1.23.2 playwright-extra: ^4.3.3 => 4.3.3 puppeteer: ^15.3.2 => 15.3.2 puppeteer-extra: ^3.3.4 => 3.3.4 puppeteer-extra-plugin-recaptcha: ^3.6.6 => 3.6.6 puppeteer-extra-plugin-stealth: ^2.11.0 => 2.11.0 puppeteer-har: ^1.1.2 => 1.1.2

SwapnilSoni1999 commented 1 year ago

did you find any solution?

gyp5y commented 1 year ago

Nope