瀏覽代碼

replace chromedriver instead of geckodriver

Gildas 5 年之前
父節點
當前提交
67e7f9ea47
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);