0.2.2 • Published 8 years ago

wdio-phantomjs-service v0.2.2

Weekly downloads
6,091
License
MIT
Repository
github
Last release
8 years ago

WDIO PhantomJS Service

Build Status

This service helps you to run PhantomJS seamlessly when running tests with the WDIO testrunner. It uses phantomjs-prebuilt NPM package.

Installation

From npm:

npm install --save-dev wdio-phantomjs-service

Instructions on how to install WebdriverIO can be found here.

Configuration

In order to use the service you need to add phantomjs to your service array:

// wdio.conf.js
export.config = {
  // ...
  services: ['phantomjs'],
  // ...
};

Options

phantomjsOpts

You can set the options for PhantomJS. Use the same properties in config.json file. See details here.

  • Type: Object
  • Default: { webdriver: 4444 }
// wdio.conf.js
export.config = {
  // ...
  services: ['phantomjs'],
  phantomjsOpts: {
    webdriverLogfile: 'phantomjs.log',
    ignoreSslErrors: true
  }
  // ...
};

For more information on WebdriverIO see the homepage.