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

Method get_platform_label

rust/src/firefox.rs:395–415  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

393 }
394
395 fn get_platform_label(&self) -> &str {
396 let os = self.get_os();
397 let arch = self.get_arch();
398 if WINDOWS.is(os) {
399 if X32.is(arch) {
400 "win32"
401 } else if ARM64.is(arch) {
402 "win-arm64"
403 } else {
404 "win64"
405 }
406 } else if MACOS.is(os) {
407 if ARM64.is(arch) { "mac-arm64" } else { "mac64" }
408 } else if X32.is(arch) {
409 "linux32"
410 } else if ARM64.is(arch) {
411 "linux-arm64"
412 } else {
413 "linux64"
414 }
415 }
416
417 fn request_latest_browser_version_from_online(
418 &mut self,

Callers 1

Calls 3

get_osMethod · 0.80
get_archMethod · 0.80
isMethod · 0.65

Tested by

no test coverage detected