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

Function assert_driver

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

Source from the content-addressed store, hash-verified

52
53#[allow(dead_code)]
54pub fn assert_driver(cmd: &mut Command) {
55 let stdout = get_stdout(cmd);
56
57 let json: JsonOutput = serde_json::from_str(&stdout).unwrap();
58 let driver_path = Path::new(&json.result.driver_path);
59 assert!(driver_path.exists());
60 assert!(is_executable(driver_path));
61}
62
63#[allow(dead_code)]
64pub 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