appium-geckodriver
Version:
Appium driver for Gecko-based browsers and web views
18 lines • 573 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveExecutablePath = resolveExecutablePath;
const support_1 = require("@appium/support");
/**
* Return an executable path of cmd. Returns `null` if the cmd is not found.
*/
async function resolveExecutablePath(cmd) {
try {
const executablePath = await support_1.fs.which(cmd);
if (executablePath && (await support_1.fs.exists(executablePath))) {
return executablePath;
}
}
catch { }
return null;
}
//# sourceMappingURL=utils.js.map