diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /testing/marionette/harness/marionette_harness/runner/mixins/browsermob-proxy-py/docs/index.rst | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'testing/marionette/harness/marionette_harness/runner/mixins/browsermob-proxy-py/docs/index.rst')
-rw-r--r-- | testing/marionette/harness/marionette_harness/runner/mixins/browsermob-proxy-py/docs/index.rst | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/testing/marionette/harness/marionette_harness/runner/mixins/browsermob-proxy-py/docs/index.rst b/testing/marionette/harness/marionette_harness/runner/mixins/browsermob-proxy-py/docs/index.rst new file mode 100644 index 000000000..0a568cf64 --- /dev/null +++ b/testing/marionette/harness/marionette_harness/runner/mixins/browsermob-proxy-py/docs/index.rst @@ -0,0 +1,72 @@ +.. BrowserMob Proxy documentation master file, created by + sphinx-quickstart on Fri May 24 12:37:12 2013. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. +.. highlightlang:: python + + + +Welcome to BrowserMob Proxy's documentation! +============================================ + +Python client for the BrowserMob Proxy 2.0 REST API. + +How to install +-------------- + +BrowserMob Proxy is available on PyPI_, so you can install it with ``pip``:: + + $ pip install browsermob-proxy + +Or with `easy_install`:: + + $ easy_install browsermob-proxy + +Or by cloning the repo from GitHub_:: + + $ git clone git://github.com/AutomatedTester/browsermob-proxy-py.git + +Then install it by running:: + + $ python setup.py install + +How to use with selenium-webdriver +---------------------------------- + +Manually:: + + from browsermobproxy import Server + server = Server("path/to/browsermob-proxy") + server.start() + proxy = server.create_proxy() + + from selenium import webdriver + profile = webdriver.FirefoxProfile() + profile.set_proxy(proxy.selenium_proxy()) + driver = webdriver.Firefox(firefox_profile=profile) + + + proxy.new_har("google") + driver.get("http://www.google.co.uk") + proxy.har # returns a HAR JSON blob + + server.stop() + driver.quit() + +Contents: + +.. toctree:: + :maxdepth: 2 + + client.rst + server.rst + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` + +.. _GitHub: https://github.com/AutomatedTester/browsermob-proxy-py +.. _PyPI: http://pypi.python.org/pypi/browsermob-proxy |