Skip to content

Commit

Permalink
fix: Append .exe to driver names on Windows
Browse files Browse the repository at this point in the history
This is an attempt to fix an issue with the launcher in the GitHub
Actions environment, but I am not certain it will help.
  • Loading branch information
joeyparrish committed Feb 3, 2022
1 parent 57cd5da commit c6e512f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c6e512f

Please sign in to comment.