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

Method get_browser_path_from_version

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

Source from the content-addressed store, hash-verified

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

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