WebdriverIO service to start & stop PhantomJS
npm install wdio-phantomjs-service[![Build Status][travis-image]][travis-url]
This service helps you to run PhantomJS seamlessly when running tests with the WDIO testrunner. It uses phantomjs-prebuilt NPM package.
From npm:
``bash`
npm install --save-dev wdio-phantomjs-service
Instructions on how to install WebdriverIO can be found here.
In order to use the service you need to add phantomjs to your service array:
`js`
// wdio.conf.js
export.config = {
// ...
services: ['phantomjs'],
// ...
};
You can set the options for PhantomJS. Use the same properties in config.json file. See details here.
- Type: Object{ webdriver: 4444 }
- Default:
`js``
// wdio.conf.js
export.config = {
// ...
services: ['phantomjs'],
phantomjsOpts: {
webdriverLogfile: 'phantomjs.log',
ignoreSslErrors: true
}
// ...
};
----
For more information on WebdriverIO see the homepage.
[travis-image]:https://img.shields.io/travis/cognitom/wdio-phantomjs-service.svg?style=flat-square
[travis-url]:https://travis-ci.org/cognitom/wdio-phantomjs-service