GitHub - hrosicka/SimpleSeleniumExample: Automate Python website interactions with Selenium and Chrome webdriver - explore, test, and learn!
Automated Python Website Testing with Selenium and Chrome
A concise example repository demonstrating how to automate browser interactions with Selenium and Chrome WebDriver in Python. The example focuses on interacting with the official python.org website.
Features
- Test-Driven Approach: All functionality is covered by unit tests using Python's built-in
unittestframework. - Beginner-Friendly: Clear class organization, comprehensive comments, and step-by-step explanations make this repository accessible to those new to Selenium or automated testing.
- Focused Testing: The repository targets specific website features and provides a solid base for building more advanced test suites.
- Easy to Extend: The modular structure allows for straightforward addition of new tests or adaptation to other web applications.
Getting Started
Prerequisites
- Python 3.x
- Google Chrome browser
- ChromeDriver (ensure it matches your Chrome version)
- Selenium (
pip install selenium)
Installation
- Clone the repository:
git clone https://github.com/hrosicka/SimpleSeleniumExample.git cd SimpleSeleniumExample - Install required dependencies:
pip install -r requirements.txt
Running Tests
python -m unittest discover
File Structure
test_*.py: Test scripts with organized test classes and detailed comments.requirements.txt: List of Python dependencies.
Author
Lovingly crafted by Hanka Robovska ๐ฉโ๐ฌ
License
This project is licensed under the MIT License. See the LICENSE file for details.