Skip to content

b4handjr/pytest-firefox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages