Skip to content

An example project using Selenium WebDriver with the Screenplay Pattern in Python

License

Notifications You must be signed in to change notification settings

AutomationPanda/selenium-screenplay-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An example project using Selenium WebDriver with the Screenplay Pattern in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages