checkly / headless-recorder

Chrome extension that records your browser interactions and generates a Playwright or Puppeteer script.
https://checklyhq.com/headless-recorder
MIT License
15.03k stars 722 forks source link

Add viewport detection #10

Closed tnolet closed 6 years ago

tnolet commented 6 years ago

The viewport width / height should be detected add add as a await page.setViewport({ width: 1280, height: 800 }) stanza after spawning the first page.

This is handy because after recording, menus might be invisible as the viewport is not very wide.