Skip to content

Commit

Permalink
[rust] Selenium Manager detects ARM architecture on Windows (#11939)
Browse files Browse the repository at this point in the history
[rust] Selenium Manager detects ARM archictecture on Windows
  • Loading branch information
bonigarcia authored Apr 25, 2023
1 parent 68a683f commit 98d3e26
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rust/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ impl ManagerConfig {
pub fn default(browser_name: &str, driver_name: &str) -> ManagerConfig {
let self_os = OS;
let self_arch = if WINDOWS.is(self_os) {
if run_shell_command(self_os, WMIC_COMMAND_OS.to_string())
.unwrap_or_default()
.contains("32")
{
let wmic_output =
run_shell_command(self_os, WMIC_COMMAND_OS.to_string()).unwrap_or_default();
if wmic_output.contains("32") {
ARCH_X86.to_string()
} else if wmic_output.contains("ARM") {
ARCH_ARM64.to_string()
} else {
ARCH_AMD64.to_string()
}
Expand Down

0 comments on commit 98d3e26

Please sign in to comment.