git ssb

0+

cel-desktop / ssb-pkg



Tree: e9d9dec1d00ff365112ca0f981bbda15e3682528

Files: e9d9dec1d00ff365112ca0f981bbda15e3682528 / test / test-79-npm / puppeteer / puppeteer.js

473 bytesRaw
1'use strict';
2
3var fs = require('fs');
4var puppeteer = require('puppeteer');
5
6puppeteer.launch().then(function (browser) {
7 browser.newPage().then(function (page) {
8 page.goto('https://zeit.co').then(function () {
9 page.screenshot({ path: 'zeit.png' }).then(function () {
10 browser.close();
11 fs.unlinkSync('zeit.png');
12 console.log('ok');
13 });
14 }).catch((error) => {
15 console.error(error);
16 process.exit(1);
17 });
18 });
19});
20

Built with git-ssb-web