commit | efb11330692424f7aa5533839b0ae728bc5f30d1 | [log] [tgz] |
---|---|---|
author | phoglund@chromium.org <phoglund@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Dec 16 14:42:55 2013 |
committer | phoglund@chromium.org <phoglund@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Dec 16 14:42:55 2013 |
tree | 10ac3fcc61d604649ee7b5ea2b8685fab3d8801e |
Adding mozilla libraries required by Firefox interop test. https://codereview.chromium.org/114293002/ pulls mozilla libraries from trunk/deps: this patch checks in the libraries of the particular version we want to use. R=kjellander@chromium.org Review URL: https://codereview.chromium.org/108313011 git-svn-id: svn://svn.chromium.org/chrome/trunk/deps/third_party/mozrunner@240893 0039d316-1c4b-4281-b951-d872f2087c98
mozrunner is a python package which handles running of Mozilla applications. mozrunner utilizes mozprofile for managing application profiles and mozprocess for robust process control.
mozrunner may be used from the command line or programmatically as an API.
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 for constructing the profile to be used by the application.
Run 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, 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://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/firefox/firefox_binary.py