Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vincent-the-gamer/playwright-template

Template of Node.js playwright project
https://github.com/vincent-the-gamer/playwright-template

Last synced: 5 days ago
JSON representation

Template of Node.js playwright project

Awesome Lists containing this project

README

        


logo


Playwright Template


Template of Node.js playwright project


To crawl web pages, run some autonomous tasks and so on.

# Folders Description
* src: for playwright libraries
* tests: for playwright tests

# Usage
### Record Scripts
~~~shell
pnpm run record
~~~

### Test
~~~shell
pnpm run test
~~~

### Install Playwright Browsers
~~~shell
pnpm run install-chromium # install chromium only
or
# choose one or more
pnpm exec playwright install chromium/firefox/webkit
or
# all
pnpm exec playwright install
~~~

### Uninstall All Playwright Browsers
~~~shell
pnpm run uninstall
~~~

# Demo
#### Demo of crawling some pictures from a webpage.
![demo](.github/demo.gif)