1
[mozrunner](https://github.com/mozilla/mozbase/tree/master/mozrunner)
2
is a [python package](http://pypi.python.org/pypi/mozrunner)
3
which handles running of Mozilla applications.
4
mozrunner utilizes [mozprofile](https://github.com/mozilla/mozbase/tree/master/mozprofile)
5
for managing application profiles
6
and [mozprocess](https://github.com/mozilla/mozbase/tree/master/mozprocess) for robust process control.
8
mozrunner may be used from the command line or programmatically as an API.
13
The `mozrunner` command will launch the application (specified by
14
`--app`) from a binary specified with `-b` or as located on the `PATH`.
16
mozrunner takes the command line options from
17
[mozprofile](https://github.com/mozilla/mozbase/tree/master/mozprofile) for constructing the profile to be used by
20
Run `mozrunner --help` for detailed information on the command line
26
mozrunner features a base class,
27
[mozrunner.runner.Runner](https://github.com/mozilla/mozbase/blob/master/mozrunner/mozrunner/runner.py)
28
which is an integration layer API for interfacing with Mozilla applications.
30
mozrunner also exposes two application specific classes,
31
`FirefoxRunner` and `ThunderbirdRunner` which record the binary names
32
necessary for the `Runner` class to find them on the system.
36
from mozrunner import FirefoxRunner
38
# start Firefox on a new profile
39
runner = FirefoxRunner()
42
See also a comparable implementation for [selenium](http://seleniumhq.org/):
43
http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/firefox/firefox_binary.py
b'\\ No newline at end of file'