GithubHelp home page GithubHelp logo

paulrajgithub / geckodriver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/geckodriver

0.0 2.0 0.0 498 KB

WebDriver <-> Marionette proxy

License: Mozilla Public License 2.0

Shell 4.51% Rust 95.49%

geckodriver's Introduction

geckodriver Build Status

Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers.

This 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.

You can consult the change log for a record of all notable changes to the program.

Supported Firefoxen

Marionette and geckodriver are not yet feature complete. This means it does not yet offer full conformance with the WebDriver standard or complete compatibility with Selenium.

You can track the implementation status of the latest Firefox Nightly on MDN. We also keep track of known Marionette, Selenium, and specification problems in our issue tracker.

Marionette support is best in Firefox 48 and onwards, although the more recent the Firefox version, the more bug fixes and features. Firefox 47 is explicitly not supported.

Firefox capabilities

geckodriver supports a capability named firefoxOptions which takes Firefox-specific preference values. This must be a dictionary and may contain any of the following fields:

Name Type Default Description
binary string Taken from -b argument or system default location Absolute path of the Firefox binary, e.g. /usr/bin/firefox or /Applications/Firefox.app/Contents/MacOS/firefox, 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.
args Array.<string> Command line arguments to pass to the Firefox binary. These must include the leading -- where required e.g. ["--devtools"].
profile string New, empty profile Base64-encoded zip of a profile directory to use as the profile for the Firefox instance. This may be used to e.g. install extensions or custom certificates.
log Log options object Logging options for Gecko.
prefs Object<string, (string|boolean|integer)> Map of preference name to preference value, which can be a string, a boolean or an integer.

Log options

Name Type Default Description
level String info with optimised Firefox builds, and debug with non-optimised Set the level of verbosity in Gecko. Available levels are trace, debug, config, info, warn, error, and fatal.

Building

geckodriver is written in Rust and you need the Rust toolchain to compile it.

To build the project for release, ensure you do a compilation with optimisations:

% cargo build --release

Or if you want a non-optimised binary for debugging:

% cargo build

Usage

Usage steps are documented on MDN, but the gist of it is this:

% geckodriver -b /usr/bin/firefox

Or if you’re on Mac:

% geckodriver -b /Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin

geckodriver's People

Contributors

jgraham avatar andreastt avatar automatedtester avatar juangj avatar vladikoff avatar joshbruning avatar martiansideofthemoon avatar nikolas avatar mythsunwind avatar

Watchers

James Cloos avatar Paulraj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.