0.3.8 • Published 5 years ago

puppeteer-browser v0.3.8

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
5 years ago

Puppeteer browser

Multiple Web browser controller based on Puppeteer API, wraps puppeteer, puppeteer-fx & puppeteer-ie in one package.

NPM Dependency FOSSA Status Build Status

NPM

(Windows users please note)

Use as a Test runner

Create your_script.js

import PuppeteerBrowser from 'puppeteer-browser';

(async () => {

    const page = await PuppeteerBrowser.getPage(
        'path/to/start/server', 'path/to/open/page'
    );

    console.log(await page.title());
})();

then run one command below in your terminal

# Chrome
node your_script

# Firefox
npm set PUPPETEER_BROWSER firefox  &&  node your_script

# Internet Explorer
npm set PUPPETEER_BROWSER IE  &&  node your_script

Notice Option started with --inspect in the command-line will disable Headless mode.

Use as a developing viewer

directories.lib field of package.json or process.cwd() will be watched.

Example from WebCell DevCLI

API Document

  • Online: URL or npm docs

  • Offline: npm start

License

FOSSA Status

0.3.8

5 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago