This repository contains a Selenium script to automate interactions with the SauceDemo website. The script performs the following tasks:
- Logs into the website with provided credentials.
- Adds two items to the shopping cart.
- Verifies that the items have been added.
- Logs out of the website.
selenium
for browser automation.
- Python 3.x
- ChromeDriver (compatible with your version of Chrome)
- Selenium library
-
Clone the repository.
git clone https://github.com/your-repo/saucedemo-automation.git cd saucedemo-automation
-
Install the required Python packages.
pip install selenium
-
Download and set up ChromeDriver.
- Ensure you have ChromeDriver installed.
- Update the
chrome_driver_path
in the script to the location of yourchromedriver
executable.
To execute the script, run:
python saucedemo_automation.py