npm

puppeteer-extra-plugin-minmax

1.1.2 • Public • Published

Minimize and Maximize Puppeteer Browsers!

This is a plugin for puppeteer-extra that allows you to minimize and maximize puppeteer browsers in real time.

Install

yarn add puppeteer-extra-plugin-minmax

Usage

const puppeteer = require("puppeteer-extra");
puppeteer.use(require("puppeteer-extra-plugin-minmax")());
 
async function test() {
  const browser = await puppeteer.launch({ headless: false });
  const page = await browser.newPage();
 
  await page.minimize();
  await page.maximize();
 
  await browser.close();
  console.log("all done");
}
 
test();

The key lines here are page.minimize() and page.maximize(). These minimize and maximize the page respectively.

Package Sidebar

Install

npm i puppeteer-extra-plugin-minmax

Weekly Downloads

99

Version

1.1.2

License

MIT

Unpacked Size

2.96 kB

Total Files

6

Last publish

Collaborators

  • jstillerman