Skip to content

Latest commit

 

History

History

python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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.