This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const helper = require('./puppeteer-helper'); | |
| (async() => { | |
| const {browser, page} = await helper({deviceName:'iPhone 6'}); | |
| const pageHeight = await page.evaluate(() => { | |
| const body = document.body; | |
| const html = document.documentElement; | |
| return Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight); | |
| }); |