Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/automationpanda/selenium-screenplay-python
An example project using Selenium WebDriver with the Screenplay Pattern in Python
https://github.com/automationpanda/selenium-screenplay-python
python screenplay screenplay-pattern selenium selenium-webdriver test-automation web-testing
Last synced: 2 months ago
JSON representation
An example project using Selenium WebDriver with the Screenplay Pattern in Python
- Host: GitHub
- URL: https://github.com/automationpanda/selenium-screenplay-python
- Owner: AutomationPanda
- License: mit
- Created: 2022-07-13T18:10:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-13T19:55:38.000Z (over 2 years ago)
- Last Synced: 2024-04-28T03:37:35.111Z (9 months ago)
- Topics: python, screenplay, screenplay-pattern, selenium, selenium-webdriver, test-automation, web-testing
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# selenium-screenplay-python
This repository contains an example project
using [Selenium WebDriver](https://www.selenium.dev/)
with the [Screenplay Pattern in Python](https://github.com/AutomationPanda/screenplay).To set up a [virtual environment](https://docs.python.org/3/tutorial/venv.html)
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](https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/)
for [ChromeDriver (for Chrome)](https://chromedriver.chromium.org/)
and [geckodriver (for Firefox)](https://github.com/mozilla/geckodriver).
They must be on the system PATH variable and thus callable from the command line.To set the target browser, edit [`config.json`](config.json).
Supported options for `"browser"` include:* `"Chrome"`
* `"Firefox"`
* `"Headless Chrome"`To execute tests, run `python -m pytest tests` from the project root directory.