/playwright-learn-init

A simple project to start playwright learning

Primary LanguageJavaBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Playwright with Junit 5

This repository provides a sample project that demonstrates how to use Playwright with Junit 5. Playwright is a Node.js library for automating web browsers and is designed to work with all major browsers such as Chrome, Firefox, and Safari.

Setup

Prerequisites

  • Java 8 or above
  • Maven
  • Playwright

Installation

  1. Clone the repository to your local machine.
  2. Install the necessary dependencies with the following command:
    mvn clean install
    ```
    
  3. Run the tests with the following command:
    mvn test
    

Conclusion

In this repository, we have demonstrated how to use Playwright with Junit 5 to write automated tests for web applications. With the powerful features provided by Playwright and the flexibility of Junit 5, we can easily write and maintain test suites that are reliable, scalable, and easy to understand.