Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to automatically click the cloudflare captcha box #42

Closed
winktool opened this issue Apr 23, 2024 · 6 comments
Closed

Unable to automatically click the cloudflare captcha box #42

winktool opened this issue Apr 23, 2024 · 6 comments

Comments

@winktool
Copy link

No description provided.

@winktool
Copy link
Author

@zfcsoftware
Copy link
Owner

Which site?

@winktool
Copy link
Author

winktool commented Apr 23, 2024

And
Can't pass the cloudflare captcha test when you have

args: ["--auto-open-devtools-for-tabs"],
      customConfig: {
        devtools: true,
      }

turned on

@winktool
Copy link
Author

@winktool
Copy link
Author

can use playwright instead of puppeteer?

@zfcsoftware
Copy link
Owner

And Can't pass the cloudflare captcha test when you have

args: ["--auto-open-devtools-for-tabs"],
      customConfig: {
        devtools: true,
      }

turned on

Hello, it solves it without any problem as in the video. I have attached the code I used below, can you please test it? It will mostly not allow it on your normal computer when devtools is open. Opening developer tools is not a normal user action.

2024-05-05.11-15-31.mp4
import { connect } from 'puppeteer-real-browser'

connect({
    turnstile: true,
})
    .then(async response => {
        const { browser, page } = response
        setInterval(() => {
            try { page.screenshot({ path: 'screenshot.png' }) } catch (e) { console.log(e.message);}
        }, 1000);
        await page.goto('https://www.premint.xyz/login/?next=/dashboard/projects/',{
            waitUntil: 'domcontentloaded'
        })
        for (let i = 0; i < 10; i++) {
            try {
                await page.reload({ waitUntil: 'domcontentloaded' })
            } catch (e) {
                console.log(e)
            }
        }
    })
    .catch(error => {
        console.log(error.message)
    })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants