A simple automation testing project built using Playwright with TypeScript to automate a contact form submission process. This project simulates real user interactions by filling form fields, submitting the form, and validating the workflow.
- π Automated contact form submission
- βοΈ Auto fills Name, Email, Subject, and Message fields
- π±οΈ Performs form submission automatically
- β Uses Playwright assertions for validation
- β±οΈ Includes execution delays for demonstration videos
- π End-to-End browser automation testing
- Playwright β Browser Automation Framework
- TypeScript β Programming Language
- Node.js β Runtime Environment
- Playwright Test Runner β Test Execution and Assertions
TESTING/
β
βββ .github/
βββ .vscode/
βββ tests/
β βββ example.spec.ts
β βββ mysite.spec.ts
β βββ superadmin.spec.ts
β βββ superadminbug.spec.ts
β
βββ .gitignore
βββ package.json
βββ package-lock.json
βββ playwright.config.ts
Install dependencies:
npm installRun all tests:
npx playwright testRun only the contact form test:
npx playwright test tests/mysite.spec.tsRun tests in headed mode:
npx playwright test --headedThis project helped in understanding:
- Playwright installation and setup
- Locators and element interactions
- Form automation testing
- Assertions using Playwright Test
- End-to-End testing workflow
- Browser automation using TypeScript
Kabish S
- B.Tech Information Technology Student
- Aspiring Java Full Stack Developer and QA Engineer
β If you found this project useful, consider giving it a star on GitHub.