This repository contains a collection of QA automation examples using different frameworks like Playwright and Selenium.
The repository is organized as follows:
/
├── playwright/
│ └── first_look_js/ # Playwright examples with JavaScript/TypeScript
└── selenium/
├── download_devops_pdfs/ # Selenium script to download PDFs
└── dynamic_pdf_scraping/ # Selenium script for dynamic PDF scraping
The playwright/first_look_js directory contains a sample Playwright project.
To run the Playwright tests, you need to have Node.js and npm installed.
-
Navigate to the
playwright/first_look_jsdirectory:cd playwright/first_look_js -
Install the dependencies:
npm install
-
Run the tests:
npx playwright test
The selenium directory contains Python scripts that use the Selenium library for web scraping and automation.
This script demonstrates how to download PDF files from a website.
-
Navigate to the
download_devops_pdfsdirectory:cd selenium/download_devops_pdfs -
Install the dependencies from
requirements.txt:pip install -r requirements.txt
-
Run the script:
python main.py
This script shows how to handle dynamic content and scrape PDF files.
-
Navigate to the
dynamic_pdf_scrapingdirectory:cd selenium/dynamic_pdf_scraping -
Install the dependencies from
requirements.txt:pip install -r requirements.txt
-
Run the script:
python main.py