This documentation is no longer maintained. For more information about mozrunner as part of the mozbase project, please see the mozbase project page.
mozrunner may be used from the command line or programmatically as an API.
Command Line Usage
mozrunner command will launch the application (specified by
--app) from a binary specified with
-b or as located on the
mozrunner takes the command line options from mozprofile for constructing the profile to be used by the application.
mozrunner --help for detailed information on the command line program.
mozrunner features a base class, mozrunner.runner.Runner which is an integration layer API for interfacing with Mozilla applications.
mozrunner also exposes two application specific classes,
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()