andywer / andywer/ideabox

Puppeteer CLI

Abierto
#13 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Sin datos de lenguaje
Estrellas
1
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.