wdio-phantomjs-service
v0.2.2
Published
WebdriverIO service to start & stop PhantomJS
Maintainers
Readme
WDIO 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:
npm install --save-dev wdio-phantomjs-serviceInstructions 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.
