Install node.js from https://nodejs.org/en/
- Run:
npm init -y - Install Playwright:
npm install playwright - Install Browsers:
npx playwright install - Install playwright tests:
npm install playwright @playwright/test - Install json2csv:
npm install json2csv - code gen:
npx playwright codegenornpx playwright codegen {websight to goto} - run script:
node index.js - run script in bulk:
npx playwright test - run script with path:
npx playwright test tests/example.spec.js - run script with reporter:
npx playwright test --reporter=html - run script with head mode:
npx playwright test --headed - run scripts with workers:
npx playwright test --workers=4*note looks like it run autoworkers - run scripts with config file:
npx playwright test --config=playwright.config.js - run script with flags:
npx playwright test -g 'Test A' - *note look into node.js + MCP + Playwright
- run script:
npm install playwright @modelcontextprotocol/sdk- install MCP - create server file see server.js - run server.js
- install ampcode
sudo npm install -g @sourcegraph/amp - run amp for jetbrains IEDs
amp --jetbrains - run MCP Server
node server.js - run
npm install --save-dev artillery @playwright/testto install artillery url:https://app.artillery.io - run
npm run load:testornpm run load:report, orartillery run tests/load/artillery-dashboard-test.yml --record --key a9_ljac4am0vm5k4whehnif3sa5csumk3gwto run on the cloud - npm test - all tests in headless █ • npm run test:headed - all tests headed █ • npm run test:suite - specific test suite
