- This Playwright script automates login, session handling, and data extraction from a hidden product table.
- It navigates through UI elements, handles pagination, and exports the scraped data to a JSON file.
-
Clone or Download the repository
$ https://github.com/pranay020/Playwright_Script.git -
Install VS Code & Python. Install Python if not already installed. Check using:
$ python --version -
Set Up a Virtual Environment (Windows)
$ python -m venv venv -
Activate the virtual environment (Windows)
$ venv\Scripts\activate -
Install Playwright and Dependencies (Windows)
$ pip install playwright$ playwright install -
Debugging (If Required)
$ playwright install-deps -
Run the Script
$ python playwright_script.py
* Python
* HTML
* Javascript
* PowerShell