Andreas Tolfsen: geckodriver 0.11.1 released |
Earlier today we released geckodriver version 0.11.1. geckodriver is an HTTP proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers.
The program provides the HTTP API described by the WebDriver protocol to communicate with Gecko browsers, such as Firefox. It translates calls into the Marionette automation protocol by acting as a proxy between the local- and remote ends.
Some highlighted changes include:
moz:firefoxOptions
dictionary,
akin to chromeOptions
,
that lets you configure
binary path, arguments, preferences, and log options
You should consult the full changelog for the complete list of notable changes.
You can fetch the latest builds which for the first time include Linux- and Windows 32-bit.
One non-backwards incompatible change to note
is that the firefox_binary
firefox_args
,
and firefox_profile
capabilities
have all been removed in favour of
the moz:firefoxOptions
dictionary.
Please consult the documentation
on how to use it.
Sample usage:
{
"moz:firefoxOptions": {
// select a custom firefox installation
// and pass some arguments to it
"binary": "/usr/local/firefox/firefox-bin",
"args": ["--foo", "--bar"],
// profile directory as a Base64 encoded string
"profile": "…",
// dictionary of preferences to set
"prefs": {
{"privacy.trackingprotection.enabled": true},
{"privacy.donottrackheader.enabled", true}
},
// increase logging verbosity
"log": {
"level": "trace"
}
}
}
Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |