We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cross post from browserless (browserless/browserless#4553)
I'm using rebrowser-patches(https://github.com/rebrowser/rebrowser-patches) to bypass bot detection, it works for my local browser via puppeteer.launch:
const browser = await puppeteer.launch({ executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', headless: false, args: ['--disable-blink-features=AutomationControlled'], defaultViewport: null, });
but it doesn't work for browserless via puppeteer.connect:
const args = ['--disable-blink-features=AutomationControlled']; const launchParams = JSON.stringify({ headless: false, args }); const wsEndpoint = /?token=&launch=${launchParams}; const connectionPromise = puppeteer.connect({ browserWSEndpoint: wsEndpoint, protocolTimeout, defaultViewport: null, });
The launch params are the same. I'm confused why it works for my local browser but not browserless. Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
cross post from browserless (browserless/browserless#4553)
I'm using rebrowser-patches(https://github.com/rebrowser/rebrowser-patches) to bypass bot detection, it works for my local browser via puppeteer.launch:
const browser = await puppeteer.launch({
executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
headless: false,
args: ['--disable-blink-features=AutomationControlled'],
defaultViewport: null,
});
but it doesn't work for browserless via puppeteer.connect:
const args = ['--disable-blink-features=AutomationControlled'];
const launchParams = JSON.stringify({ headless: false, args });
const wsEndpoint = /?token=&launch=${launchParams};
const connectionPromise = puppeteer.connect({
browserWSEndpoint: wsEndpoint,
protocolTimeout,
defaultViewport: null,
});
The launch params are the same. I'm confused why it works for my local browser but not browserless. Thanks!
The text was updated successfully, but these errors were encountered: