wct-local
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -11,2 +11,5 @@ # Change Log | ||
## [v2.1.5] - 2019-07-09 | ||
- Added `javaArgs` to plugin options. | ||
## [v2.1.4] - 2019-06-05 | ||
@@ -13,0 +16,0 @@ - Updated selenium version to 3.141.59 to support latest JDK versions. |
@@ -62,2 +62,5 @@ declare module 'selenium-standalone' { | ||
seleniumArgs?: string[]; | ||
/** seleniumJavaArgs */ | ||
javaArgs?: string[]; | ||
@@ -64,0 +67,0 @@ /** set the javaPath manually, otherwise we use `which` */ |
@@ -25,2 +25,3 @@ "use strict"; | ||
pluginOptions.seleniumArgs = pluginOptions.seleniumArgs || []; | ||
pluginOptions.javaArgs = pluginOptions.javaArgs || []; | ||
pluginOptions.skipSeleniumInstall = | ||
@@ -66,3 +67,3 @@ pluginOptions.skipSeleniumInstall || false; | ||
} | ||
const port = yield start(wct, pluginOptions.seleniumArgs); | ||
const port = yield start(wct, pluginOptions.seleniumArgs, pluginOptions.javaArgs); | ||
updatePort(eachCapabilities, port); | ||
@@ -69,0 +70,0 @@ }); |
import * as wct from 'wct'; | ||
export declare function checkSeleniumEnvironment(): Promise<void>; | ||
export declare function startSeleniumServer(wct: wct.Context, args: string[]): Promise<number>; | ||
export declare function installAndStartSeleniumServer(wct: wct.Context, args: string[]): Promise<number>; | ||
export declare function startSeleniumServer(wct: wct.Context, args: string[], javaArgs: string[]): Promise<number>; | ||
export declare function installAndStartSeleniumServer(wct: wct.Context, args: string[], javaArgs: string[]): Promise<number>; |
@@ -54,7 +54,7 @@ "use strict"; | ||
exports.checkSeleniumEnvironment = checkSeleniumEnvironment; | ||
function startSeleniumServer(wct, args) { | ||
function startSeleniumServer(wct, args, javaArgs) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
wct.emit('log:info', 'Starting Selenium server for local browsers'); | ||
yield checkSeleniumEnvironment(); | ||
const opts = { args: args, install: false }; | ||
const opts = { args: args, javaArgs: javaArgs, install: false }; | ||
return seleniumStart(wct, opts); | ||
@@ -64,7 +64,7 @@ }); | ||
exports.startSeleniumServer = startSeleniumServer; | ||
function installAndStartSeleniumServer(wct, args) { | ||
function installAndStartSeleniumServer(wct, args, javaArgs) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
wct.emit('log:info', 'Installing and starting Selenium server for local browsers'); | ||
yield checkSeleniumEnvironment(); | ||
const opts = { args: args, install: true }; | ||
const opts = { args: args, javaArgs: javaArgs, install: true }; | ||
return seleniumStart(wct, opts); | ||
@@ -86,2 +86,3 @@ }); | ||
config.seleniumArgs = ['-port', port.toString()].concat(opts.args); | ||
config.javaArgs = opts.javaArgs || []; | ||
// Bookkeeping once the process starts. | ||
@@ -88,0 +89,0 @@ config.spawnCb = function (server) { |
{ | ||
"name": "wct-local", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "WCT plugin that enables support for local browsers via Selenium", | ||
@@ -38,2 +38,8 @@ "keywords": [ | ||
}, | ||
"javaArgs": { | ||
"help": "Add java args to selenium-java-args", | ||
"full": "selenium-java-args", | ||
"metavar": "ARG", | ||
"list": true | ||
}, | ||
"skipSeleniumInstall": { | ||
@@ -40,0 +46,0 @@ "help": "Skip trying to install selenium.", |
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
33702
822