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

Method is_snap

rust/src/chrome.rs:686–689  ·  view source on GitHub ↗
(&self, browser_path: &str)

Source from the content-addressed store, hash-verified

684 }
685
686 fn is_snap(&self, browser_path: &str) -> bool {
687 LINUX.is(self.get_os())
688 && (browser_path.eq(CHROMIUM_SNAP_LINK) || browser_path.eq(CHROMIUM_SNAP_BINARY))
689 }
690
691 fn get_snap_path(&self) -> Option<PathBuf> {
692 Some(Path::new(CHROMIUM_SNAP_BINARY).to_path_buf())

Callers

nothing calls this directly

Calls 2

get_osMethod · 0.80
isMethod · 0.65

Tested by

no test coverage detected