Browse Source

use +=

Former-commit-id: 07a5bc4aa0bd184b5b1fa842e77492db2cc6cfbd
Gildas 5 years ago
parent
commit
92b5b7b576
2 changed files with 2 additions and 2 deletions
  1. 1 1
      cli/back-ends/webdriver-chromium.js
  2. 1 1
      cli/back-ends/webdriver-gecko.js

+ 1 - 1
cli/back-ends/webdriver-chromium.js

@@ -56,7 +56,7 @@ function getBrowserOptions(options) {
 		chromeOptions.setChromeBinaryPath(options.browserExecutablePath);
 		chromeOptions.setChromeBinaryPath(options.browserExecutablePath);
 	}
 	}
 	if (options.webDriverExecutablePath) {
 	if (options.webDriverExecutablePath) {
-		process.env["PATH"] = process.env["PATH"] + ";" + options.webDriverExecutablePath.replace(/geckodriver(\.exe)?$/, "");
+		process.env["PATH"] += ";" + options.webDriverExecutablePath.replace(/geckodriver(\.exe)?$/, "");
 	}
 	}
 	if (options.browserArgs) {
 	if (options.browserArgs) {
 		const args = JSON.parse(options.browserArgs);
 		const args = JSON.parse(options.browserArgs);

+ 1 - 1
cli/back-ends/webdriver-gecko.js

@@ -55,7 +55,7 @@ function getBrowserOptions(options) {
 		firefoxOptions.setBinary(options.browserExecutablePath);
 		firefoxOptions.setBinary(options.browserExecutablePath);
 	}
 	}
 	if (options.webDriverExecutablePath) {
 	if (options.webDriverExecutablePath) {
-		process.env["PATH"] = process.env["PATH"] + ";" + options.webDriverExecutablePath.replace(/geckodriver(\.exe)?$/, "");
+		process.env["PATH"] += ";" + options.webDriverExecutablePath.replace(/geckodriver(\.exe)?$/, "");
 	}
 	}
 	const extensions = [];
 	const extensions = [];
 	if (options.browserDisableWebSecurity === undefined || options.browserDisableWebSecurity) {
 	if (options.browserDisableWebSecurity === undefined || options.browserDisableWebSecurity) {