Tutorials and sample web automation tests project using Selenium and Python
- Make sure you have .Python 3 or newer installed on your machine (project was developed using python 3.12). Check installation
python -V
- Clone this repository to your local machine.
- Open folder (
selenium-webdriver-python
) in VS Code. - Using terminal navigate to project folder and run
pip install -r requirements.txt
- Make sure you have the appropriate browser installed (
https://www.selenium.dev/documentation/webdriver/browsers/
) - Open the project directory in VS Code or your preferred IDE.
- Run the tests using your preferred test runner or IDE or from terminal, e.g. use any of the below:
pytest .\tests\test_selenium_web_form.py pytest -m selenium pytest -m selenium_pom --html=results.html pytest -m selenium_parallel -n auto --html=report.html
- python 3.12
- selenium 4
- pytest 8
Please check my YouTube channel for step by step implementation or detailed tutorials on automation and more: https://www.youtube.com/@TechWithAlexDuta
This project is licensed under the MIT License - see the LICENSE file for details.