Skip to content

AdamLowe33/playwright-node-js

Repository files navigation

Setup In WebStorm

Install node.js from https://nodejs.org/en/

  1. Run: npm init -y
  2. Install Playwright: npm install playwright
  3. Install Browsers: npx playwright install
  4. Install playwright tests: npm install playwright @playwright/test
  5. Install json2csv: npm install json2csv
  6. code gen: npx playwright codegen or npx playwright codegen {websight to goto}
  7. run script: node index.js
  8. run script in bulk: npx playwright test
  9. run script with path: npx playwright test tests/example.spec.js
  10. run script with reporter: npx playwright test --reporter=html
  11. run script with head mode: npx playwright test --headed
  12. run scripts with workers: npx playwright test --workers=4 *note looks like it run autoworkers
  13. run scripts with config file: npx playwright test --config=playwright.config.js
  14. run script with flags: npx playwright test -g 'Test A'
  15. *note look into node.js + MCP + Playwright
  16. run script: npm install playwright @modelcontextprotocol/sdk - install MCP
  17. create server file see server.js - run server.js
  18. install ampcode sudo npm install -g @sourcegraph/amp
  19. run amp for jetbrains IEDs amp --jetbrains
  20. run MCP Server node server.js
  21. run npm install --save-dev artillery @playwright/test to install artillery url: https://app.artillery.io
  22. run npm run load:test or npm run load:report, or artillery run tests/load/artillery-dashboard-test.yml --record --key a9_ljac4am0vm5k4whehnif3sa5csumk3gw to run on the cloud
  23. npm test - all tests in headless █ • npm run test:headed - all tests headed █ • npm run test:suite - specific test suite

example setup

img.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published