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

Method get_browser_path_from_version

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

Source from the content-addressed store, hash-verified

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