This project is a Python-based Selenium WebDriver script that automates testing for the Demoblaze e-commerce website. The script performs a series of automated actions to validate the website's core functionalities and captures visual evidence through screenshots.
- Logs into the website using predefined credentials.
- Verifies successful authentication.
- Selects the "Laptops" category.
- Ensures the category filter displays the correct items.
- About Us: Navigates to the About Us section and verifies the displayed content.
- Contact Page: Opens the Contact page and confirms the content is correctly loaded.
- Fills the form with sample data.
- Submits the form and handles the confirmation alert.
- Verifies the form submission is successful.
- Captures screenshots after key actions to document the website's state:
laptopfilter.png→ After filtering laptops.about.png→ On the About Us section.Contact.png→ On the Contact form page.
- Language: Python
- Automation Framework: Selenium WebDriver
- Browser: Firefox
- Output: Screenshots for visual validation
- Install Dependencies:
pip install -r requirements.txt- Run the Script:
python3 test.py- Review Screenshots:
- Check the
screenshotsfolder for the captured images.
This script effectively automates the testing of Demoblaze website features, including login, category filtering, page navigation, and form submission, while capturing screenshots for visual validation.