npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wdio-webdriver-service

v1.0.1

Published

WebdriverIO service to start & stop WebDriver component (geckodriver, chrome driver)

Downloads

125

Readme

WDIO WebDriver Service

(Based on wdio-selenium-standalone-service)


This service helps you to run Chromedriver or Geckodriver seamlessly when running tests with the WDIO testrunner. It uses:

Note - this service does not require a Selenium server, but uses ChromeDriver or GeckoDriver to communicate with the browser directly. It supports:

capabilities: [{
        browserName: 'firefox'
    }]

and

capabilities: [{
        browserName: 'chrome'
    }]

Installation

The easiest way is to keep wdio-webdriver-service as a devDependency in your package.json.

{
  "devDependencies": {
    "wdio-webdriver-service": "~0.1"
  }
}

You can simple do it by:

npm install wdio-webdriver-service --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

To use the service you need to add webdriver to your service array:

// wdio.conf.js
export.config = {
  port: '9515',
  path: '/',
  // ...
  services: ['webdriver'],
  // ...
  webDriverType: 'geckodriver',
  webDriverLogs: './',
  webDriverArgs: ['--silent'],
  webDriverKillProcess: false, // to kill webdriver (chromedriver or geckodriver) process after complete, default true
};

Options

webDriverLogs

Path where all logs from the WebDriver server should be stored.

Type: String


webDriverType

Type of the driver component to use. Possible values: geckodriver, chromedriver

Type: String


webDriverArgs

Arguments to run driver component binary with. Note that options for Gecko driver and Chrome driver are different.

More info:

  • Gecko driver options:

    -b BINARY/--binary BINARY       Path to the Firefox binary to use.
    --connect-existing              Connecting to an existing Firefox instance. 
    --host HOST                     Host to use for the WebDriver server. Defaults to 127.0.0.1.
    --log LEVEL                     Set the Gecko and geckodriver log level.
    --marionette-port PORT          Port to use for connecting to the Marionette remote protocol.
    -p PORT/--port PORT             Port to use for the WebDriver server. Defaults to 4444.
  • Chrome driver options:

    --port=PORT                     Port to listen on
    --adb-port=PORT                 Adb server port
    --verbose                       Log verbosely
    --version                       Print the version number and exit
    --silent                        Log nothing
    --url-base                      Base URL path prefix for commands, e.g. wd/url
    --port-server                   Address of server to contact for reserving a port
    --whitelisted-ips               Comma-separated whitelist of remote IPv4 addresses which are allowed to connect to ChromeDriver

Type: Array


For more information on WebdriverIO see the homepage.


TODO list