This is a Playwright project written in TypeScript to automate tests for the DemoQA website. It aims to demonstrate various functionalities provided by Playwright for browser automation.
The purpose of this project is to showcase how Playwright can be used to efficiently write automated tests for web applications. It focuses on testing different features and scenarios of the DemoQA website.
- Clone this repository to your local machine.
- Make sure you have Node.js installed.
- Install dependencies using
npm install
. - Run tests using
npm test
.
src/
: Contains the TypeScript source code for the tests.tests/
: Contains the actual test files.package.json
: Configuration file for Node.js dependencies and scripts.tsconfig.json
: Configuration file for TypeScript compilation.
The tests cover a variety of scenarios, including but not limited to:
- Interacting with text boxes
- Clicking buttons and links
- Filling out forms
- Verifying elements and text on the page
- Navigating between pages
Contributions are welcome! If you find any bugs or want to add more tests, feel free to open an issue or submit a pull request.
- Playwright Documentation: Official documentation for Playwright.
- DemoQA: Website used for testing.
- Page Object Model (POM) for improved test maintenance.
- Integration with GitHub Actions for continuous integration.