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

Something wrong with debugging and inspecting, generally interacting with elements #241

Open
aBabken opened this issue Dec 14, 2024 · 5 comments
Labels
triage This ticket will be looked at shortly

Comments

@aBabken
Copy link

aBabken commented Dec 14, 2024

Description

2024-12-14.13.23.30.online-video-cutter.com.mp4

In video I just try to interact with search bar, and something don't allow me fully make text, and this is with ALL elements to interact with every page

Full steps to reproduce the issue

It's just default setting of puppeteer with last version
"dependencies": { "@2captcha/captcha-solver": "^1.3.0", "axios": "^1.7.9", "date-fns": "^4.1.0", "dotenv": "^16.4.7", "js-levenshtein": "^1.1.6", "openai": "^4.76.1", "playwright": "^1.48.2", "playwright-extra": "^4.3.6", "puppeteer": "^23.8.0", "puppeteer-extra": "^3.3.6", "puppeteer-extra-plugin-click-and-wait": "^2.3.3", "puppeteer-extra-plugin-stealth": "^2.11.2", "puppeteer-real-browser": "^1.3.17", "puppeteer-screen-recorder": "^3.0.6" }, "devDependencies": { "@cloudflare/puppeteer": "^0.0.14" }
It's not the full code, but the main part

`
const { connect } = require('puppeteer-real-browser');

const { page, browser } = await connect({
    headless: false,
    turnstile: true,
    fingerprint: true,
    customConfig: {
        devtools: true
    },
    args: [
        '--no-sandbox',
        `--proxy-server=${randomProxy.ip}:${randomProxy.port}`
    ],
    proxy: {
        server: `${randomProxy.ip}:${randomProxy.port}`,
        username: randomProxy.username,
        password: randomProxy.password
    }
})
await page.setRequestInterception(true);

page.on('request', (request) => {
    if (request.url().includes('screeb.app')) {
        request.abort();
    } else {
        request.continue();
    }
});

await page.setViewport(screenSize);

await page.authenticate({
    username: randomProxy.username,
    password: randomProxy.password
});`

Issue Type

Bug

Operating System

Mac OS

Do you use Docker?

I don't use Docker

@aBabken aBabken added the triage This ticket will be looked at shortly label Dec 14, 2024
@RubberArchind
Copy link

RubberArchind commented Dec 14, 2024

I think that's because the turnstile, try set it to false.

@aBabken
Copy link
Author

aBabken commented Dec 14, 2024

turnstile

that's right, but I need turnstile also, is there any way to use it and avoid such beheviour?

@RubberArchind
Copy link

turnstile

that's right, but I need turnstile also, is there any way to use it and avoid such beheviour?

why you really need turnstile set to true, is that appear on every page or what?

@aBabken
Copy link
Author

aBabken commented Dec 14, 2024

turnstile

that's right, but I need turnstile also, is there any way to use it and avoid such beheviour?

why you really need turnstile set to true, is that appear on every page or what?

not on every page, just I want to except such case

@RubberArchind
Copy link

i think it's better to set it to false, and make the turnstile click "manually" based on some condition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage This ticket will be looked at shortly
Projects
None yet
Development

No branches or pull requests

2 participants