This repository contains a collection of examples and demos using Playwright, a Node.js library for automated testing of web applications.
To get started with these examples, you will need to have Node.js and npm installed on your machine.
- Clone the repository:
git clone [email protected]:TommyGitHubs/playwright-js-tyme.git
- Navigate to the repository directory:
cd playwright-js-tyme
- Install the dependencies:
npm install
npx playwright install
- Run the test:
a. Run default (Chrome browser)
npx cross-env ENV=dev npm run test
b. Run with Firefox
npx cross-env ENV=dev npm run test:firefox
c. Run all Browser
npx cross-env ENV=dev npm run test:allBrowser
The examples in this repository cover a variety of topics, including:
- Getting started with Playwright
- Navigating to a website and interacting with elements
- Taking screenshots and generating PDFs
- Testing web applications across different browsers and devices
Contributions are welcome! If you have an idea for an example or demo that you would like to see added to this repository, please open an issue or submit a pull request.