Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jenx007/saucedemo-automation
This project automates login to the Sauce Demo website using Selenium, extracts product details, updates data in a JSON file, and integrates with an external API for additional data retrieval. Each function is encapsulated in a class to improve modularity and reusability.
https://github.com/jenx007/saucedemo-automation
api python requests-library-python selenium selenium-webdriver test-automation
Last synced: 4 days ago
JSON representation
This project automates login to the Sauce Demo website using Selenium, extracts product details, updates data in a JSON file, and integrates with an external API for additional data retrieval. Each function is encapsulated in a class to improve modularity and reusability.
- Host: GitHub
- URL: https://github.com/jenx007/saucedemo-automation
- Owner: Jenx007
- Created: 2024-11-08T16:34:03.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-08T17:00:53.000Z (3 months ago)
- Last Synced: 2024-11-18T05:37:28.979Z (2 months ago)
- Topics: api, python, requests-library-python, selenium, selenium-webdriver, test-automation
- Language: Python
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SauceDemo-Automation
# Project Overview
This project automates interactions with the [Sauce Demo](https://www.saucedemo.com/) website using Selenium. The script logs into the site, extracts product details, updates product information, and integrates with an external API to retrieve additional data. All actions are organized within a modular class structure.# Features
- Automated Login: Logs into Sauce Demo using credentials stored in a JSON file.
- Product Extraction: Retrieves all product details (title, description, and price) and saves them to a JSON file.
- Data Update: Updates the price of the third product to $100 within the JSON file.
- API Integration: Makes an API call to JSON Placeholder to retrieve a title and save it in a separate JSON file.# Project Structure
- `credentials.json`: Stores login credentials (username and password).
- `product_details.json`: Contains details of all products extracted from the site.
- `post_title.json`: Stores the title retrieved from the external API.
- `Main.py`: Main script implementing the automation in a modular class structure.# Prerequisites
- **Python**: Python 3.x is required.
- **ChromeDriver**: Ensure ChromeDriver is installed and accessible from your system's PATH.
- **Libraries**:
- `selenium`
- `requests`
- `json`