Explorar o código

replace chromedriver instead of geckodriver

Gildas %!s(int64=5) %!d(string=hai) anos
pai
achega
67e7f9ea47
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cli/back-ends/webdriver-chromium.js

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

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