- Ensure you have NodeJS installed.
- Install a code editor. We will be using Visual Studio Code.
- $npm init playwright@latest <project-name>
Note: We can install Playwright from VS Code marketplace as well.
Example: Enter ‘Install playwright’ on the marketplace search bar.
Basic Run: $npx playwright test
Using Gradle:
./gradlew test -Dheadless=<true|false> -Dbrowser=<chrome|firefox|webkit>