pytest-selenium is a plugin for py.test that provides support for running Selenium based tests.
The pytest-selenium plugin provides a function scoped selenium fixture for your tests. This means that any test with selenium as an argument will cause a browser instance to be invoked. The browser may run locally or remotely depending on your configuration, and may even run headless.