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
Tell us about your environment:
What steps will reproduce the problem?
const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ headless: false, defaultViewport: null }); const page = await browser.newPage(); await page.goto('https://www.google.com/'); await page.screenshot({ path: 'example.png', fullPage: true }); await browser.close(); })();
What is the expected result? No error and screenshot is saved.
What happens instead? UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'isMobile' of null
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'isMobile' of null
The text was updated successfully, but these errors were encountered:
Trying this gave me a different error:
fullPage screenshots do not work without first setting viewport. (source)
fullPage screenshots do not work without first setting viewport.
Is this still considered a bug?
Sorry, something went wrong.
@yanivefraim yeah; viewport should not be necessary to do a full-page screenshot.
fix(page): full page screenshot when defaultViewport is null (#3306)
842fee8
Fixes #3104
Successfully merging a pull request may close this issue.
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
What is the expected result?
No error and screenshot is saved.
What happens instead?
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'isMobile' of null
The text was updated successfully, but these errors were encountered: