andywer / andywer/ideabox

Puppeteer CLI

Đang mở
#13 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.