We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 250a509 commit e502096Copy full SHA for e502096
rust/tests/common.rs
@@ -28,7 +28,11 @@ use std::path::Path;
28
29
#[allow(dead_code)]
30
pub fn get_selenium_manager() -> Command {
31
- let path = env!("CARGO_BIN_EXE_selenium-manager");
+ let mut path = env!("CARGO_BIN_EXE_selenium-manager").to_string();
32
+
33
+ if cfg!(windows) && !path.ends_with(".exe") {
34
+ path.push_str(".exe");
35
+ }
36
37
if Path::new(path).exists() {
38
return Command::new(path);
0 commit comments