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

Function assert_driver

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

Source from the content-addressed store, hash-verified

54
55#[allow(dead_code)]
56pub fn assert_driver(cmd: &mut Command) {
57 let stdout = get_stdout(cmd);
58
59 let json: JsonOutput = serde_json::from_str(&stdout).unwrap();
60 let driver_path = Path::new(&json.result.driver_path);
61 assert!(driver_path.exists());
62 assert!(is_executable(driver_path));
63}
64
65#[allow(dead_code)]
66pub fn assert_browser(cmd: &mut Command) {

Callers 7

config_testFunction · 0.85
webview2_testFunction · 0.85
mirror_testFunction · 0.85
exec_driver_testFunction · 0.85
stable_browser_testFunction · 0.85

Calls 1

get_stdoutFunction · 0.85

Tested by

no test coverage detected