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

Function assert_browser

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

Source from the content-addressed store, hash-verified

62
63#[allow(dead_code)]
64pub fn assert_browser(cmd: &mut Command) {
65 let stdout = &cmd.unwrap().stdout;
66 let output = std::str::from_utf8(stdout).unwrap();
67 let json: JsonOutput = serde_json::from_str(output).unwrap();
68 let browser_path = Path::new(&json.result.browser_path);
69 assert!(browser_path.exists());
70 assert!(is_executable(browser_path));
71}
72
73#[allow(dead_code)]
74pub fn get_driver_path(cmd: &mut Command) -> String {

Callers 5

config_testFunction · 0.85
exec_driver_testFunction · 0.85
stable_browser_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected