geckodriver: Merge pull request #160 from andreastt/capsdoc

Document supported capabilities

Source-Repo: https://github.com/mozilla/geckodriver
Source-Revision: 1ba87cdf954060fc210a79a4fa64a0bdf6dda6b5

--HG--
extra : rebase_source : 345251963aa5184341045dde7580c0a0d91bc1bc
This commit is contained in:
Andreas Tolfsen 2016-08-04 16:51:51 +01:00
Родитель dd5ac1e5a9
Коммит eda46a0bb3
1 изменённых файлов: 23 добавлений и 0 удалений

Просмотреть файл

@ -34,6 +34,29 @@ although the more recent the Firefox version,
the more bug fixes and features.
**Firefox 47 is explicitly not supported.**
## Firefox capabilities
geckodriver supports a couple of non-standard capabilities
to customise and configure a Firefox session:
<dl>
<dt><code>firefox_binary</code>
<dd>Set to full path of the Firefox binary,
e.g. <i>/usr/bin/firefox</i> or <i>/Applications/Firefox.app/Contents/MacOS/firefox</i>,
to select which custom browser binary to use.
If left undefined geckodriver will attempt
to deduce the default location of Firefox
on the current system.
<dt><code>firefox_profile</code>
<dd>For each session, geckodriver creates a new temporary profile by default.
To set custom preferences or use an add-on/extension,
you may want to provide a custom profile.
A profile can be sent across the wire protocol
by setting this capability to its path
on the local filesystem.
</dl>
## Building
geckodriver is written in [Rust](https://www.rust-lang.org/)