geckodriver
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -6,5 +6,6 @@ import cp from 'node:child_process'; | ||
export async function start(params) { | ||
const { cacheDir, ...startArgs } = params; | ||
let geckoDriverPath = process.env.GECKODRIVER_FILEPATH || params.customGeckoDriverPath; | ||
if (!geckoDriverPath) { | ||
geckoDriverPath = await downloadDriver(params.geckoDriverVersion, params.cacheDir); | ||
geckoDriverPath = await downloadDriver(params.geckoDriverVersion, cacheDir); | ||
} | ||
@@ -14,4 +15,4 @@ if (!(await hasAccess(geckoDriverPath))) { | ||
} | ||
params.host = params.host || DEFAULT_HOSTNAME; | ||
const args = parseParams(params); | ||
startArgs.host = startArgs.host || DEFAULT_HOSTNAME; | ||
const args = parseParams(startArgs); | ||
log.info(`Starting Geckodriver at ${geckoDriverPath} with params: ${args.join(' ')}`); | ||
@@ -18,0 +19,0 @@ return cp.spawn(geckoDriverPath, args); |
{ | ||
"name": "geckodriver", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "Mozilla's Geckodriver for Node.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/webdriverio-community/node-geckodriver#readme", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49454
274