Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vincent-the-gamer/playwright-template
- Owner: Vincent-the-gamer
- Created: 2023-08-10T16:24:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-13T02:15:06.000Z (over 1 year ago)
- Last Synced: 2023-08-13T03:23:09.266Z (over 1 year ago)
- Language: TypeScript
- Size: 27.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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)