Improve this doc

PhantomJS Service

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

Installation

From npm:

1
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:

1
2
3
4
5
6
// wdio.conf.js
export.config = {
// ...
services: ['phantomjs'],
// ...
};

Examples

See full examples here.