Skip to main content

pytest plugin to manipulate firefox

Project description

pytest-firefox
===============

pytest-firefox is a plugin for `pytest <http://pytest.org>`_ that provides
support for running `FoxPuppet <http://https://github.com/mozilla/FoxPuppet/>`_
to control `Firefox Web Browser <https://www.mozilla.org/en-US/firefox/>`_ 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:

.. code-block:: bash

$ pip install pytest-firefox

Usage
-----

To use pytest-firefox with your tests simply specify ``firefox` as a fixture
to your test.

.. code-block:: python

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


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.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

pytest_firefox-0.1.0-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-firefox-0.1.0.tar.gz.

File metadata

File hashes

Hashes for pytest-firefox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d41cd25a64c1fc721e7064804062c72a33b1756d2fbaad17aa5eaa6afe0ab5d
MD5 2c32567aec5bfa0a2a01130654068b06
BLAKE2b-256 7f1735e5a9165acd120258a9dc9cdc2c39e5ad51a9b0cde989560688c752890f

See more details on using hashes here.

File details

Details for the file pytest_firefox-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_firefox-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e755b2d4f36f88faac1f907d0c4e1ada55777e27521d63f863d1e2f703142fb2
MD5 3971baeeb80a77cd3eec58201e4d9447
BLAKE2b-256 079b96e45d1e4ba2f01a2ab6943cb84a8c7c368a71ff0167ce5062773d26ffa4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page