-
-
Notifications
You must be signed in to change notification settings - Fork 732
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
Inner and outer width/height inconsistency #79
Comments
I remember that there was a discussion about this on the puppeteer issue tracker, If I recall correctly it matters when the viewport is set or something. I don't have time to look into this right now but please report any findings you might have :) |
@flunkman just found this through google (untested): const browser = await puppeteer.launch({defaultViewport: null});
|
If this works we should seriously start a wiki with those stealth tips. 😄 |
I've added this to the new wiki: https://github.com/berstend/puppeteer-extra/wiki/Common-stealth-issues |
The result is the same with 'defaultViewport: null'... But I've managed to solve this issue by adding the '--window-size=1920,1080' argument to puppeteer.launch. |
Hi there!
I may have spotted an issue with the stealth plugin.
When I use 'await page.setViewport({ width: 800, height: 600 })' I get this:
But if I raise the viewport dimensions, for instance 'await page.setViewport({ width: 1920, height: 1080 })' here is what I get:
As you can see several values like the outer width/height remains at 800x600 no matter what. Since those are lower than the inner width/height, some sites detect my headless Chrome and block it due to this simple test.
Are they hardcoded values or can we change them programmatically?
The text was updated successfully, but these errors were encountered: