lib/puppeteer.js
async function getHeight(url) {
    await page.goto(url);

    const height = await page.evaluate(() => {
      return document.body.getBoundingClientRect().height;
    });

    return height;
  }
async function getHeight(url) {
    await page.goto(url);

    const height = await page.evaluate(() => {
      return document.body.getBoundingClientRect().height;
    });

    return height;
  }
async function getHeight ( url ) { await page . goto ( url ) ; const height = await page . evaluate ( ( ) => { return document . body . getBoundingClientRect ( ) . height ; } ) ; return height ; }
Get page height
Get page height