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

Function invalid_browser_path_test

rust/tests/browser_tests.rs:236–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235#[test]
236fn invalid_browser_path_test() {
237 let mut cmd = get_selenium_manager();
238 cmd.args([
239 "--browser",
240 "chrome",
241 "--browser-path",
242 "/bad/path/google-chrome-wrong",
243 ])
244 .assert()
245 .code(DATAERR)
246 .failure();
247}
248
249#[cfg(unix)]
250fn create_fake_browser(dir: &Path, version: &str) -> std::path::PathBuf {

Callers

nothing calls this directly

Calls 3

get_selenium_managerFunction · 0.85
codeMethod · 0.80
argsMethod · 0.80

Tested by

no test coverage detected