This is a template project for setting up a Playwright framework with Java, Maven and TestNG following the Page Object Model (POM) design pattern. It provides a starting point for automated UI testing using Playwright.
-
Create a new repository using this template or clone the repository to your local machine:
git clone https://github.com/simplytest/template-java-playwright-pageobject.git
-
Navigate to the project directory
cd template-java-playwright-pageobject -
Install dependencies
mvn clean install
-
Set the base URL in src/test/resources/config/config.properties
To run the tests, use the following Maven command:
mvn testThis project is set up to generate Allure reports for better visualization of test results. After running the tests, you can generate the Allure report using the following command:
allure serve allure-resultsIf you'd like to contribute, please fork the repository and create a new pull request.
This project is licensed under the MIT License - see the LICENSE file for details.