PhantomJS Service
This service helps you to run PhantomJS seamlessly when running tests with the WDIO testrunner. It uses phantomjs-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:
| 12
 3
 4
 5
 6
 
 | export.config = {
 
 services: ['phantomjs'],
 
 };
 
 | 
Examples
See full examples here.