Skip to content

Files

Latest commit

 

History

History
38 lines (26 loc) · 902 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 902 Bytes

Running all tests from Selenium python example

Follow these steps to run all test example from selenium python

  1. Clone this repository
git clone https://github.com/SeleniumHQ/seleniumhq.github.io.git
  1. Navigate to python directory
cd seleniumhq.github.io/examples/python
  1. 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 with pip3

  1. 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

Execute a specific example

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.