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

Method get_browser_path_from_version

rust/src/lib.rs:410–423  ·  view source on GitHub ↗
(&self, mut browser_version: &str)

Source from the content-addressed store, hash-verified

408 }
409
410 fn get_browser_path_from_version(&self, mut browser_version: &str) -> &str {
411 if browser_version.eq_ignore_ascii_case(CANARY) {
412 browser_version = NIGHTLY;
413 } else if !self.is_unstable(browser_version) {
414 browser_version = STABLE;
415 }
416 self.get_browser_path_map()
417 .get(&BrowserPath::new(
418 str_to_os(self.get_os()).unwrap(),
419 browser_version,
420 ))
421 .cloned()
422 .unwrap_or_default()
423 }
424
425 fn detect_browser_in_known_locations(&self) -> Option<PathBuf> {
426 None

Callers 2

detect_browser_pathMethod · 0.80

Implementers 8

edge.rsrust/src/edge.rs
iexplorer.rsrust/src/iexplorer.rs
safaritp.rsrust/src/safaritp.rs
electron.rsrust/src/electron.rs
chrome.rsrust/src/chrome.rs
firefox.rsrust/src/firefox.rs
grid.rsrust/src/grid.rs
safari.rsrust/src/safari.rs

Calls 5

str_to_osFunction · 0.85
is_unstableMethod · 0.80
get_osMethod · 0.80
getMethod · 0.65
get_browser_path_mapMethod · 0.45

Tested by

no test coverage detected