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