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.
- 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.
- Python 3.x
- Google Chrome browser
- ChromeDriver (ensure it matches your Chrome version)
- Selenium (
pip install selenium)
- Clone the repository:
git clone https://github.com/hrosicka/SimpleSeleniumExample.git cd SimpleSeleniumExample - Install required dependencies:
pip install -r requirements.txt
python -m unittest discovertest_*.py: Test scripts with organized test classes and detailed comments.requirements.txt: List of Python dependencies.
Lovingly crafted by Hanka Robovska 👩🔬
This project is licensed under the MIT License. See the LICENSE file for details.