WDIO GeckoDriver Service
![Audit](https://github.com/webdriverio-community/wdio-geckodriver-service/actions/workflows/audit.yml/badge.svg)
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:
export.config = {
services: [
[
'geckodriver',
{
outputDir: './logs',
geckodriverOptions: {
log: 'debug'
}
}
]
],
};
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.