Follow these steps to run all test example from selenium python
- Clone this repository
git clone https://github.com/SeleniumHQ/seleniumhq.github.io.git
- Navigate to
python
directory
cd seleniumhq.github.io/examples/python
- Install dependencies using pip
pip install -r requirements.txt
if you are on a different python version, for example python3.x you may have to replace
pip
withpip3
- Run all tests
pytest
Please keep some patience - If you are doing it for the first time, it will take a little while to verify and download the browser drivers
To run a specific Selenium Python example, use the following command:
pytest path/to/test_script.py
Make sure to replace path/to/test_script.py
with the path and name of the example you want to run.