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

Function get_driver_path

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

Source from the content-addressed store, hash-verified

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

Callers 2

exec_driverFunction · 0.85
cache_path_testFunction · 0.85

Calls 1

path_to_stringFunction · 0.85

Tested by

no test coverage detected