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 TypeScript and ts-node to run files:
npm install --save-dev typescript @types/node ts-nodeInstall Playwright latest version:
npm install playwright@latestRun:
npm install npm@latest
npm upgrade
npm audit fixRun:
./src/demo.tsIf you prefer, you can run with ts-node explicitly:
npx ts-node ./src/demo.tsOr compile and run:
npx tsc ./src/demo.ts
node ./src/demo.tsThe 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-typescript
- 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 [email protected]