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

Function get_driver_path

rust/tests/common.rs:76–81  ·  view source on GitHub ↗
(cmd: &mut Command)

Source from the content-addressed store, hash-verified

74
75#[allow(dead_code)]
76pub fn get_driver_path(cmd: &mut Command) -> String {
77 let stdout = &cmd.unwrap().stdout;
78 let output = std::str::from_utf8(stdout).unwrap();
79 let json: JsonOutput = serde_json::from_str(output).unwrap();
80 path_to_string(Path::new(&json.result.driver_path))
81}
82
83#[allow(dead_code)]
84pub fn exec_driver(cmd: &mut Command) -> String {

Callers 3

exec_driverFunction · 0.85
cache_path_testFunction · 0.85

Calls 1

path_to_stringFunction · 0.85

Tested by

no test coverage detected