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

Method get_platform_label

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

get_osMethod · 0.80
get_archMethod · 0.80
isMethod · 0.65

Tested by

no test coverage detected