Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.13 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.13 KB

selenium-screenplay-python

This repository contains an example project using Selenium WebDriver with the Screenplay Pattern in Python.

To set up a virtual environment and install project dependencies, run the following on macOS and Linux:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

For Windows, run:

python3 -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt

You must also install WebDriver executables for ChromeDriver (for Chrome) and geckodriver (for Firefox). They must be on the system PATH variable and thus callable from the command line.

To set the target browser, edit config.json. Supported options for "browser" include:

  • "Chrome"
  • "Firefox"
  • "Headless Chrome"

To execute tests, run python -m pytest tests from the project root directory.