zfcsoftware / puppeteer-real-browser

This package is designed to bypass puppeteer's bot-detecting captchas such as Cloudflare. It acts like a real browser and can be managed with puppeteer.
https://www.npmjs.com/package/puppeteer-real-browser
MIT License
407 stars 58 forks source link

Turnstile autoClick not working anymore #83

Closed waelbenmustapha closed 2 weeks ago

waelbenmustapha commented 2 weeks ago

Not sure why , but i had a code that have been working perfectly for a week , today randomly it stopped working , turned out the Turnstile , cloudflare checkbox is not being clicked anymore , if i click it manually all good , but the browser can't auto click it anymore .

is it just me ?

waelbenmustapha commented 2 weeks ago

so im currently digging into it , and seems like the const elements = await page.$$('iframe');

in the checkStat function , doesn't detect the iframe , it always returns 0 iframes when in the cloudflare screen

waelbenmustapha commented 2 weeks ago

still digging and i think the iframe is not getting targeted because of #shadow-root (closed) image

EgglezosK commented 2 weeks ago

@waelbenmustapha First of all try this to check if the automate click is working

https://github.com/zfcsoftware/puppeteer-real-browser/issues/80#issuecomment-2205737725

waelbenmustapha commented 2 weeks ago

@waelbenmustapha First of all try this to check if the automate click is working

https://github.com/zfcsoftware/puppeteer-real-browser/issues/80#issuecomment-2205737725

I tried and i faced same issue .

EgglezosK commented 2 weeks ago

@waelbenmustapha First of all try this to check if the automate click is working https://github.com/zfcsoftware/puppeteer-real-browser/issues/80#issuecomment-2205737725

I tried and i faced same issue .

https://github.com/zfcsoftware/puppeteer-real-browser/issues/80#issuecomment-2211829757

TheRealStingo commented 2 weeks ago

@waelbenmustapha First of all try this to check if the automate click is working https://github.com/zfcsoftware/puppeteer-real-browser/issues/80#issuecomment-2205737725

I tried and i faced same issue .

Did you find a solution for the your issue ?

waelbenmustapha commented 2 weeks ago

@waelbenmustapha First of all try this to check if the automate click is working https://github.com/zfcsoftware/puppeteer-real-browser/issues/80#issuecomment-2205737725

I tried and i faced same issue .

Did you find a solution for the your issue ?

for me i kinda followed the idea they had but simpler solution , for me it's just one page that i need scrapping and the captcha always appear at the same screen ,

so i just added a mouse click like this

    page.setViewport({ width: 800, height:  1000 });
    ...
    await page.mouse.move(55, 325);
    // Click at the desired coordinates
    await page.mouse.click(55, 325);
waelbenmustapha commented 2 weeks ago

@waelbenmustapha First of all try this to check if the automate click is working https://github.com/zfcsoftware/puppeteer-real-browser/issues/80#issuecomment-2205737725

I tried and i faced same issue .

#80 (comment)

also btw , i did a small trick that might help you , pretty much change the closed shadow root to open shadow root , which allows us to get the checkbox and click it ,

but i faced few issues with it , that when you click it it doesn't work anymore , it gets stuck the captcha ,

i just wanted to share the idea

EgglezosK commented 2 weeks ago

hat when you click it it doesn't work

Have you Discord or something? to figure it out together and proceed to a solution ?

zfcsoftware commented 2 weeks ago

The problem should be solved. Please test with the latest version.

waelbenmustapha commented 2 weeks ago

The problem should be solved. Please test with the latest version.

Thank you , good solution you did there