cognitom / wdio-phantomjs-service

WebdriverIO service to start & stop PhantomJS
MIT License
8 stars 1 forks source link

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.

// wdio.conf.js
export.config = {
  // ...
  services: ['phantomjs'],
  phantomjsOpts: {
    webdriverLogfile: 'phantomjs.log',
    ignoreSslErrors: true
  }
  // ...
};

For more information on WebdriverIO see the homepage.