1. wdio-geckodriver-service
WebdriverIO service to start & stop GeckoDriver
wdio-geckodriver-service
Package: wdio-geckodriver-service
Created by: webdriverio-community
Last modified: Mon, 17 Jul 2023 15:23:51 GMT
Version: 5.0.2
License: MIT
Downloads: 91,354
Repository: https://github.com/webdriverio-community/wdio-geckodriver-service

Install

npm install wdio-geckodriver-service
yarn add wdio-geckodriver-service

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.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin