You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In below code, when my system environment key [PATH] is written as Path, it cause process.env['PATH'] to return undefined. Can someone please take a look?
exports.findInPath = function(file, opt_checkCwd) {
let dirs = [];
if (opt_checkCwd) {
dirs.push(process.cwd());
}
dirs.push.apply(dirs, process.env['PATH'].split(path.delimiter));
let foundInDir = dirs.find(dir => {
let tmp = path.join(dir, file);
try {
let stats = fs.statSync(tmp);
return stats.isFile() && !stats.isDirectory();
} catch (ex) {
return false;
}
});
I cannot reproduce this, could you please provide a concise reproducible test case, that includes the page required to execute the scenario (a sample page or a public site).
Closing this as we did not get more information, please feel free to open a new issue if the problem still persists after trying with the most recent versions.
Hi,
In below code, when my system environment key [PATH] is written as Path, it cause process.env['PATH'] to return undefined. Can someone please take a look?
exports.findInPath = function(file, opt_checkCwd) {
let dirs = [];
if (opt_checkCwd) {
dirs.push(process.cwd());
}
dirs.push.apply(dirs, process.env['PATH'].split(path.delimiter));
let foundInDir = dirs.find(dir => {
let tmp = path.join(dir, file);
try {
let stats = fs.statSync(tmp);
return stats.isFile() && !stats.isDirectory();
} catch (ex) {
return false;
}
});
return foundInDir ? path.join(foundInDir, file) : null;
};
https://github.com/SeleniumHQ/selenium/blob/master/javascript/node/selenium-webdriver/io/index.js
The text was updated successfully, but these errors were encountered: