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

Function get_selenium_manager

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

Source from the content-addressed store, hash-verified

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

Calls 2

expectMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected