Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎭 "Playwright Contact Form Automation"

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.

✨ Features

  • πŸš€ 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

πŸ› οΈ Technologies Used

  • Playwright – Browser Automation Framework
  • TypeScript – Programming Language
  • Node.js – Runtime Environment
  • Playwright Test Runner – Test Execution and Assertions

πŸ“‚ Project Structure

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

▢️ Run the Test

Install dependencies:

npm install

Run all tests:

npx playwright test

Run only the contact form test:

npx playwright test tests/mysite.spec.ts

Run tests in headed mode:

npx playwright test --headed

🎯 Learning Outcomes

This 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

πŸ‘¨β€πŸ’» Author

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.

About

End-to-end web automation testing project built with Playwright and TypeScript for form automation and UI validation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages