Skip to main content

Reliable start/stop/configuration of Mozilla Applications (Firefox, Thunderbird, etc.)

Project description

[mozrunner](https://github.com/mozilla/mozbase/tree/master/mozrunner) is a [python package](http://pypi.python.org/pypi/mozrunner) which handles running of Mozilla applications. mozrunner utilizes [mozprofile](https://github.com/mozilla/mozbase/tree/master/mozprofile) for managing application profiles and [mozprocess](https://github.com/mozilla/mozbase/tree/master/mozprocess) for robust process control.

mozrunner may be used from the command line or programmatically as an API.

# Command Line Usage

The mozrunner command will launch the application (specified by –app) from a binary specified with -b or as located on the PATH.

mozrunner takes the command line options from [mozprofile](https://github.com/mozilla/mozbase/tree/master/mozprofile) for constructing the profile to be used by the application.

Run mozrunner –help for detailed information on the command line program.

# API Usage

mozrunner features a base class, [mozrunner.runner.Runner](https://github.com/mozilla/mozbase/blob/master/mozrunner/mozrunner/runner.py) which is an integration layer API for interfacing with Mozilla applications.

mozrunner also exposes two application specific classes, FirefoxRunner and ThunderbirdRunner which record the binary names necessary for the Runner class to find them on the system.

Example API usage:

from mozrunner import FirefoxRunner

# start Firefox on a new profile runner = FirefoxRunner() runner.start()

See also a comparable implementation for [selenium](http://seleniumhq.org/): http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/firefox/firefox_binary.py

Project details


Release history Release notifications | RSS feed

This version

5.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mozrunner-5.7.tar.gz (6.9 kB view details)

Uploaded Source

File details

Details for the file mozrunner-5.7.tar.gz.

File metadata

  • Download URL: mozrunner-5.7.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mozrunner-5.7.tar.gz
Algorithm Hash digest
SHA256 b07274f4341c20573307cad02b664f9fc9306c1f89c1e1255bcde1d3b7463335
MD5 acb7b605e8e0ce75b29a2a491f5ad587
BLAKE2b-256 1a19ee41df25a4fbc38df5cdfeda85f0e565f4d71922c85ad0a4e3673ce8cec6

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