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

Function json_output_test

rust/tests/output_tests.rs:26–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25#[test]
26fn json_output_test() {
27 let mut cmd = get_selenium_manager();
28 cmd.args([
29 "--browser",
30 if is_linux_arm64() {
31 "firefox"
32 } else {
33 "chrome"
34 },
35 "--output",
36 "json",
37 ])
38 .assert()
39 .success()
40 .code(0);
41
42 let stdout = get_stdout(&mut cmd);
43
44 let json: JsonOutput = serde_json::from_str(&stdout).unwrap();
45 assert!(!json.logs.is_empty());
46
47 let output_code = json.result.code;
48 assert_eq!(output_code, 0);
49
50 let driver = Path::new(&json.result.driver_path);
51 assert!(driver.exists());
52}
53
54#[test]
55fn shell_output_test() {

Callers

nothing calls this directly

Calls 6

get_selenium_managerFunction · 0.85
is_linux_arm64Function · 0.85
get_stdoutFunction · 0.85
codeMethod · 0.80
argsMethod · 0.80
successMethod · 0.45

Tested by

no test coverage detected