From c6e512f1ed80760c7c70eb0f97234857bce70f7a Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Thu, 3 Feb 2022 08:11:25 -0800 Subject: [PATCH] fix: Append .exe to driver names on Windows This is an attempt to fix an issue with the launcher in the GitHub Actions environment, but I am not certain it will help. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c047412..6847008 100644 --- a/index.js +++ b/index.js @@ -54,13 +54,14 @@ const LocalWebDriverBase = function( // File name. Assume it's in our driver cache. driverCommand = path.join(DRIVER_CACHE, driverCommand); } + log.debug(`Default driver command: ${driverCommand}`); // Checked by the base class to determine what command to run. this.DEFAULT_CMD = { linux: driverCommand, darwin: driverCommand, - win32: driverCommand, + win32: driverCommand + '.exe', }; const port = Math.floor((Math.random() * 1000)) + 4000;