Demonstration of:
- Playwright browser automation testing
- JavaScript programming language
- Node runtime built on Chrome's V8 JavaScript engine
- Chromium open source web browser
Install Node and NPM from https://nodejs.org/
Run this to confirm your version:
node -vOutput should be at least:
v23.6.1
Run this to confirm your version:
npm -vOutput should be at least:
11.2.0
Install Playwright latest version:
npm install playwright@latestRun:
npm install npm@latest
npm upgrade
npm audit fixRun:
./src/demo.jsIf you prefer, you can run with Node explicitly:
node src/demo.jsThe script will do three things:
-
Launch your local Chrome web browser to view the free open source testing examples web page https://testingexamples.github.io.
-
Interact with the web page in various ways, such as finding elements, clicking on elements, filling in form inputs, etc.
-
Print some typical HTML tag output that demonstrates the program is running successfully.
- Package: playwright-examples-using-javascript
- Version: 1.4.0
- Created: 2019-11-02T00:00:00Z
- Updated: 2025-04-24T13:58:02Z
- License: GPL-2.0-or-greater or for custom license contact us
- Contact: Joel Parker Henderson joel.henderson@wales.nhs.uk