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

Method get_platform_label

rust/src/chrome.rs:444–458  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

442 }
443
444 fn get_platform_label(&self) -> &str {
445 let os = self.get_os();
446 let arch = self.get_arch();
447 if WINDOWS.is(os) {
448 if X32.is(arch) { "win32" } else { "win64" }
449 } else if MACOS.is(os) {
450 if ARM64.is(arch) {
451 "mac-arm64"
452 } else {
453 "mac-x64"
454 }
455 } else {
456 "linux64"
457 }
458 }
459
460 fn request_latest_browser_version_from_online(
461 &mut self,

Calls 3

get_osMethod · 0.80
get_archMethod · 0.80
isMethod · 0.65

Tested by

no test coverage detected