MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / get_selenium_manager

Function get_selenium_manager

rust/tests/common.rs:30–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29#[allow(dead_code)]
30pub fn get_selenium_manager() -> Command {
31 let mut path = PathBuf::from(env!("CARGO_BIN_EXE_selenium-manager"));
32
33 if !path.is_absolute() {
34 path = std::env::current_dir()
35 .expect("Unable to get current directory")
36 .join(path);
37 }
38
39 if path.exists() {
40 return Command::new(path);
41 }
42
43 if cfg!(windows) {
44 let exe_path = path.with_extension("exe");
45 if exe_path.exists() {
46 return Command::new(exe_path);
47 }
48 }
49
50 panic!("Binary not found {}", path_to_string(&path));
51}
52
53#[allow(dead_code)]
54pub fn assert_driver(cmd: &mut Command) {

Callers 15

electron_latest_testFunction · 0.85
electron_version_testFunction · 0.85
offline_testFunction · 0.85
safari_testFunction · 0.85
wrong_proxy_testFunction · 0.85
wrong_port_proxy_testFunction · 0.85
config_testFunction · 0.85
skills_test_defaultFunction · 0.85
skills_test_fallbackFunction · 0.85
skills_test_custom_nameFunction · 0.85
skills_no_overwrite_testFunction · 0.85

Calls 2

expectMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected