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

Method is_browser

rust/src/lib.rs:1020–1029  ·  view source on GitHub ↗
(&self, entry: &DirEntry)

Source from the content-addressed store, hash-verified

1018 }
1019
1020 fn is_browser(&self, entry: &DirEntry) -> bool {
1021 if MACOS.is(self.get_os()) && !self.is_firefox() {
1022 let entry_path = path_to_string(entry.path());
1023 self.is_in_cache(entry, &capitalize(self.get_browser_name()))
1024 && entry_path.contains(".app/Contents/MacOS")
1025 && !entry_path.contains("Framework")
1026 } else {
1027 self.is_in_cache(entry, &self.get_browser_name_with_extension())
1028 }
1029 }
1030
1031 fn is_driver(&self, entry: &DirEntry) -> bool {
1032 self.is_in_cache(entry, &self.get_driver_name_with_extension())

Callers 1

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 9

path_to_stringFunction · 0.85
capitalizeFunction · 0.85
get_osMethod · 0.80
is_firefoxMethod · 0.80
is_in_cacheMethod · 0.80
isMethod · 0.65
pathMethod · 0.45
get_browser_nameMethod · 0.45

Tested by

no test coverage detected