chromium-headless-client
v2.0.0
Published
A simple wrapper for the chromium headless browser.
Downloads
31
Maintainers
Readme
chromium-headless-client
A useful utility wrapper for headless testing with Chrome.
Prerequisites
You need to have Chrome 59+ OR Chrome Canary installed.
Run the tests
git clone [email protected]:bryceewatson/chromium-headless-client
cd chromium-headless-client
npm install
npm testUsing Chromium Headless Client
The tests in this project provide useful examples for how to integrate CHC with your mocha tests.
npm install chromium-headless-client --save-devconst CHC = require('chromium-headless-client');
CHC.init({startPage: 'https://www.google.com', headless: true}).then((res) => {
done();
}).catch((err) => {
console.log(err);
done(err);
});Authors
- Bryce Watson
