This repository contains automated UI test scripts built using Playwright with JavaScript. The tests cover common web automation scenarios such as dropdown handling, keyboard interactions, mouse hover actions, and element locators.
- Playwright — end-to-end testing framework
- JavaScript (Node.js) — scripting language
- Playwright Test Runner — for running and reporting tests
playwright_plugin/
├── tests/
│ ├── dropdown.spec.js # Dropdown selection tests (by value, label, loop)
│ ├── keyboard.spec.js # Keyboard actions (copy, paste, select all)
│ ├── mousehover.spec.js # Mouse hover interactions
│ └── prac.spec.js # Practice / misc test scripts
├── playwright.config.js # Playwright configuration (browsers, projects)
├── package.json
└── README.md
-
Clone the repository
git clone https://github.com/your-username/playwright-tests.git cd playwright-tests -
Install dependencies
npm install
-
Install Playwright browsers
npx playwright install
Run all tests (default browser/project):
npx playwright testRun a specific test file:
npx playwright test tests/dropdown.spec.jsRun tests in headed mode (see the browser while running):
npx playwright test --headedRun tests on a specific browser project (e.g. Firefox):
npx playwright test --project=firefoxRun tests using a real installed browser (e.g. Chrome):
npx playwright test --channel=chromeAfter a test run, open the HTML report:
npx playwright show-reportMaintained by Mahira — built while learning Playwright automation with JavaScript.