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

Function assert_browser

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

Source from the content-addressed store, hash-verified

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