pytest plugin to manipulate firefox
Project description
pytest-firefox is a plugin for pytest that provides support for running FoxPuppet to control Firefox Web Browser within a test.
Requirements
You will need the following prerequisites in order to use pytest-firefox:
Python 2.7, 3.6
pytest 3.0 or newer
Installation
To install pytest-firefox:
$ pip install pytest-firefox
Usage
To use pytest-firefox with your tests simply specify firefox as a fixture to your test.
def test_something(firefox):
firefox.open_window()
This will open a new window.
pytest-firefox also creates a default Selenium WebDriver object named selenium.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-firefox-0.1.1.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file pytest-firefox-0.1.1.tar.gz
.
File metadata
- Download URL: pytest-firefox-0.1.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d91ddd9b7090986d6e45df38830328d7178e95a846eafb1a975a12b7eb5a9fdb |
|
MD5 | af43953a6561e52e397e3e72dd4b4a12 |
|
BLAKE2b-256 | de63787231103968f019ad071e515f0ffc03e6b61175915faf8df28427af8a0a |
File details
Details for the file pytest_firefox-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_firefox-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c7acb4dc3d068a6d356797f18731b6ad2f64b5681043c0119f4b821bf20ea07 |
|
MD5 | b97724ea1a0f71f139406315262472d5 |
|
BLAKE2b-256 | 3a2b19004697995af34753fcb918eaf840bcb386a8757649e63730a9a6b89f94 |