git ssb

0+

cel-desktop / ssb-pkg



Tree: 1eb144e388da5f1a3466703f56ac4ab591d700fc

Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / 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