[rust] Use LOCALAPPDATA env for Edge version detection in Windows
@@ -28,8 +28,8 @@ use crate::metadata::{
create_driver_metadata, get_driver_version_from_metadata, get_metadata, write_metadata,
};
use crate::{
- SeleniumManager, BETA, DASH_DASH_VERSION, DEV, ENV_PROGRAM_FILES, ENV_PROGRAM_FILES_X86,
- NIGHTLY, REG_QUERY, STABLE, WMIC_COMMAND, WMIC_COMMAND_ENV,
+ SeleniumManager, BETA, DASH_DASH_VERSION, DEV, ENV_LOCALAPPDATA, ENV_PROGRAM_FILES,
+ ENV_PROGRAM_FILES_X86, NIGHTLY, REG_QUERY, STABLE, WMIC_COMMAND, WMIC_COMMAND_ENV,
};
const BROWSER_NAME: &str = "edge";
@@ -109,6 +109,7 @@ impl SeleniumManager for EdgeManager {
commands = vec![
self.format_two_args(WMIC_COMMAND_ENV, ENV_PROGRAM_FILES_X86, browser_path),
self.format_two_args(WMIC_COMMAND_ENV, ENV_PROGRAM_FILES, browser_path),
+ self.format_two_args(WMIC_COMMAND, ENV_LOCALAPPDATA, browser_path),
];
if !self.is_browser_version_unstable() {
commands.push(
