This project demonstrates how to automate the Amazon search bar using Playwright. Playwright is a Node.js library for automating browsers, and in this project, we use page object model to test and validate amazon search bar functionality.
To get started with this project, follow these steps:
- Node.js installed on your machine
- npm package manager
Clone this repository to your local machine using the following command:
git clone https://github.com/arsh_anwr/playwright_amazon.gitNavigate to the project directory and install the necessary dependencies:
cd playwright_amazon
npm installTo run the test, use the following command:
npx playwright test
# with UI
npx playwright test --uinpx playwright show-report