wdio-geckodriver-service
TypeScript icon, indicating that this package has built-in type declarations

5.0.2 • Public • Published

WDIO GeckoDriver Service Tests Audit

This service helps you to run GeckoDriver seamlessly when running tests with the WDIO testrunner. This service does not require a Selenium server, but uses the geckodriver NPM package that wraps the GeckoDriver for you or uses a global installed binary.

Example capabilities:

capabilities: [{
    browserName: 'firefox'
}]

Installation

npm install wdio-geckodriver-service --save-dev

Configuration

By design, only Firefox is available (when installed on the host system). In order to use the service you need to add geckodriver to your service array:

// wdio.conf.js
export.config = {
    // MANDATORY: Add geckodriver to service array.
    // Default: empty array
    services: [
        [
            'geckodriver',
            // service options
            {
                // The path where the output of the Geckodriver server should
                // be stored (uses the config.outputDir by default when not set).
                outputDir: './logs',

                // pass in custom options for Geckodriver, for more information see
                // https://github.com/webdriverio-community/node-geckodriver#options
                geckodriverOptions: {
                    log: 'debug' // set log level of driver
                }
            }
        ]
    ],
};

Options

outputDir

The path where the output of the Safaridriver server should be stored (uses the config.outputDir by default when not set).

Type: string

logFileName

The name of the log file to be written in outputDir. Requires outputDir to be set in WebdriverIO config or as service option.

Type: string
Default: wdio-geckodriver-service-<cid>.log

geckodriverOptions

Options that are passed into Geckodriver. See driver docs for more information.

Type: GeckodriverParameters
Default: {}


For more information on WebdriverIO see the homepage.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.25,041latest
4.0.0-alpha.00next

Version History

VersionDownloads (Last 7 Days)Published
5.0.25,041
5.0.140
5.0.02
4.1.21,785
4.1.188
4.1.01
4.0.0202
4.0.0-alpha.00
3.0.6241
3.0.50
3.0.40
3.0.312
3.0.21
3.0.11
3.0.00
2.1.22,993
2.1.162
2.1.096
2.0.342
2.0.23
2.0.135
2.0.00
1.1.242,342
1.1.16
1.1.05
1.0.3990
1.0.20
1.0.11
1.0.00

Package Sidebar

Install

npm i wdio-geckodriver-service

Weekly Downloads

11,908

Version

5.0.2

License

MIT

Unpacked Size

25.7 kB

Total Files

28

Last publish

Collaborators

  • wdio-user
  • rafalskorka