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

Method get_platform_label

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

Source from the content-addressed store, hash-verified

525 }
526
527 fn get_platform_label(&self) -> &str {
528 let os = self.get_os();
529 let arch = self.get_arch();
530 if WINDOWS.is(os) {
531 if X32.is(arch) { "win32" } else { "win64" }
532 } else if MACOS.is(os) {
533 if ARM64.is(arch) {
534 "mac-arm64"
535 } else {
536 "mac-x64"
537 }
538 } else if ARM64.is(arch) {
539 "linux-arm64"
540 } else {
541 "linux64"
542 }
543 }
544
545 fn request_latest_browser_version_from_online(
546 &mut self,

Callers 2

find_platform_urlMethod · 0.45

Calls 3

get_osMethod · 0.80
get_archMethod · 0.80
isMethod · 0.65

Tested by

no test coverage detected