andywer / andywer/ideabox

Puppeteer CLI

オープン
#13 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
1
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

Run any code in a headless chrome instance. Useful for running tests in a browser (Karma sucks!), snapshotting and more.

Entry point may be a JS or HTML file. Console output will be piped through, unhandled errors will be piped to stderr. The DOM, the rendered page, network requests or coverage may be piped into an output file.

## Sample usage

```
$ tool ./some-file.js
$ tool https://cdnjs.cloudflare.com/ajax/libs/mocha/5.0.4/mocha.js ./integration-test
$ tool https://google.com/ --capture-snapshot ./snapshot.png --viewport 800x600
$ tool https://google.com/ --capture-pdf ./snapshot.pdf
$ tool https://google.com/ --capture-requests ./requests.json

# Advanced
$ tool http://localhost:3000/ ./integration-test --request-interceptor ./user-fetch-fails
```

## Integrations

Optional integration to use a locally present webpack or parcel bundler and its config might be cool.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。