pytest-firefox
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.
Release files for pytest-firefox 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_firefox-0.2.0.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_firefox-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.2 kB
Release files / pytest_firefox-0.2.0.tar.gz
| Download URL | pytest_firefox-0.2.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a9671de14b2d5a0600a170e80a8d311043e6d1bb0b2f13bfa46ac32c0e9ba2b
|
|
BLAKE2b-256 checksum How to use checksums |
86a64daeebbb51768e93ebb1028622c2fbde31850abf6530661d162c0d52599c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pytest_firefox-0.2.0-py3-none-any.whl
| Download URL | pytest_firefox-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83da4162716d7a828522dfc5d4aba74410763f1538605dbc00fa8da4dfc8b24d
|
|
BLAKE2b-256 checksum How to use checksums |
4c52b607ff1270142a877b3ae90c1dd2b4cca1b51725b3ec8adee71254acbca6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|