Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wdio-edgedriver-service

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wdio-edgedriver-service

WebdriverIO service to start & stop EdgeDriver

  • 2.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.6K
increased by6.52%
Maintainers
2
Weekly downloads
 
Created
Source

WDIO EdgeDriver Service Tests

This service helps you to run Microsoft WebDriver (Edge) seamlessly when running tests with the WDIO testrunner.

This service does not require a Selenium server, but uses the Microsoft WebDriver that is installed as a Windows Feature on Demand or msedgedriver package for Chromium-based Edge.

Example capabilities:

capabilities: [{
    browserName: 'MicrosoftEdge'
}]

Installation

EDGECHROMIUMDRIVER_VERSION=107.0.1418.8 npm install wdio-edgedriver-service --save-dev

Make sure you set the right version within the EDGECHROMIUMDRIVER_VERSION environment variable. Check this page for all available versions.

Configuration

By design, only Edge is available. In order to use the service you need to add edgedriver to your service array:

// wdio.conf.js
export.config = {
    // MANDATORY: Add edgedriver to service array.
    // Default: empty array
    services: [
        'edgedriver',
        // service options
        {
            // OPTIONAL: Provide custom port for edgeedriver.
            // edgeDriverRandomPort must be set to false to use this port and maxInstances must be set to 1.
            // Default: 4444
            port: 17556, // default for EdgeDriver

            // OPTIONAL: Arguments passed to edgedriver executable.
            // Note: Do not specify port here, use `port` config option instead.
            // Default: empty array
            args: ['--verbose'],

            // OPTIONAL: Location of edgedriver logs.
            // Must be a directory if using maxInstances > 1.
            // Could be a file name or a directory if maxInstances == 1.
            // Logs are saved as `EdgeDriver-{portname}.log`
            // Logs are not stored if this option is not set.
            // Default: not set
            outputDir: './logs'
        }
    ],
};

Options

port

Custom port to start Edgedriver on.

Type: number
Default: random port

path

The path on which the driver should run on.

Type: number
Default: /

args

Array of arguments to pass to the Geckodriver executable. Every argument should be prefixed with --.

Type: string[]
Default: []

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.

Type: string
Default: wdio-geckodriver.log

edgedriverCustomPath

Type: string
Default: path to local or global installed Geckodriver


For more information on WebdriverIO see the homepage.

Keywords

FAQs

Package last updated on 03 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc