Just as in strength training, you'd have equipment like weights, sleds. With computer automation you'd have tools that you will learn to operate. Here is a shopping list of tools you will need (they are free, you only need to download and install them).
-
Watch demo video
-
Download and install VS Code https://code.visualstudio.com/
-
Download and install nodejs
-
Download and unzip this folder. You should note where you have unzipped this.
-
Launch VS Code
-
Select File > Open Workspace.... > (choose
automation-bootcamp.workspace
) -
Type
CTRL + ~
a.
npx playwright install
b.
npm i
-
npm run test
-
Show detailed logs
$env:DEBUG="pw:api"
npm run test
- Trace
npx playwright show-trace test-results\trace.zip
- testMatch
let links = await page.$$('div.a')
let href = await links[0].getAttribute('href')