andywer / andywer/ideabox

Puppeteer CLI

未關閉
#13 1 則留言 0 個 reaction 已指派 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 摘要。