-
-
Notifications
You must be signed in to change notification settings - Fork 742
Common stealth issues
berstend̡̲̫̹̠̖͚͓̔̄̓̐̄͛̀͘ edited this page Nov 28, 2019
·
4 revisions
Problem:
If you you modify the viewport (e.g. page.setViewport({ width: 1920, height: 1080 })
) you need to launch puppeteer with defaultViewport: null
.
Example:
const browser = await puppeteer.launch({ defaultViewport: null })
Reason:
Puppeteer emulates viewport by default, so window resizing doesn't affect viewport.
Issue: #3688