wdio-selenium-standalone-service
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _util = require('util'); | ||
var _util2 = _interopRequireDefault(_util); | ||
var _fsExtra = require('fs-extra'); | ||
@@ -47,19 +51,11 @@ | ||
this.logToStdout = config.logToStdout; | ||
this.skipSeleniumInstall = !!config.skipSeleniumInstall; | ||
return this._installSeleniumDependencies(this.seleniumInstallArgs).then(function () { | ||
return new Promise(function (resolve, reject) { | ||
return _seleniumStandalone2.default.start(_this.seleniumArgs, function (err, process) { | ||
if (err) { | ||
return reject(err); | ||
} | ||
if (!this.skipSeleniumInstall) { | ||
return _util2.default.promisify(_seleniumStandalone2.default.install)(this.seleniumInstallArgs).then(function () { | ||
return _this._startSelenium(_this.seleniumArgs); | ||
}); | ||
} | ||
_this.process = process; | ||
if (typeof _this.seleniumLogs === 'string') { | ||
_this._redirectLogStream(); | ||
} | ||
resolve(); | ||
}); | ||
}); | ||
}); | ||
return this._startSelenium(this.seleniumArgs); | ||
} | ||
@@ -74,12 +70,12 @@ }, { | ||
}, { | ||
key: '_installSeleniumDependencies', | ||
value: function _installSeleniumDependencies(seleniumInstallArgs) { | ||
return new Promise(function (resolve, reject) { | ||
return _seleniumStandalone2.default.install(seleniumInstallArgs, function (err) { | ||
if (err) { | ||
return reject(err); | ||
} | ||
key: '_startSelenium', | ||
value: function _startSelenium(seleniumArgs) { | ||
var _this2 = this; | ||
resolve(); | ||
}); | ||
return _util2.default.promisify(_seleniumStandalone2.default.start)(seleniumArgs).then(function (process) { | ||
_this2.process = process; | ||
if (typeof _this2.seleniumLogs === 'string') { | ||
_this2._redirectLogStream(); | ||
} | ||
}); | ||
@@ -86,0 +82,0 @@ } |
{ | ||
"name": "wdio-selenium-standalone-service", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "WebdriverIO service to start & stop Selenium Standalone", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ WDIO Selenium Standalone Service [![Code Climate](https://codeclimate.com/github/webdriverio/wdio-selenium-standalone-service/badges/gpa.svg)](https://codeclimate.com/github/webdriverio/wdio-selenium-standalone-service) [![Build Status](https://travis-ci.org/webdriverio/wdio-selenium-standalone-service.svg?branch=master)](https://travis-ci.org/webdriverio/wdio-selenium-standalone-service) | ||
"devDependencies": { | ||
"wdio-selenium-standalone-service": "~0.0.11" | ||
"wdio-selenium-standalone-service": "~0.0.12" | ||
} | ||
@@ -71,4 +71,11 @@ } | ||
### skipSeleniumInstall | ||
Boolean for skipping `selenium-standalone` server install. | ||
Type: `Boolean` | ||
Default: `false` | ||
---- | ||
For more information on WebdriverIO see the [homepage](http://webdriver.io). | ||
For more information on WebdriverIO see the [homepage](http://webdriver.io). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80
19113
325