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

Method get_platform_label

rust/src/electron.rs:267–289  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

265 }
266
267 fn get_platform_label(&self) -> &str {
268 let os = self.get_os();
269 let arch = self.get_arch();
270 if WINDOWS.is(os) {
271 if X32.is(arch) {
272 "win32-ia32"
273 } else if ARM64.is(arch) {
274 "win32-arm64"
275 } else {
276 "win32-x64"
277 }
278 } else if MACOS.is(os) {
279 if ARM64.is(arch) {
280 "mas-arm64"
281 } else {
282 "mas-x64"
283 }
284 } else if ARM64.is(arch) {
285 "linux-arm64"
286 } else {
287 "linux-x64"
288 }
289 }
290
291 fn request_latest_browser_version_from_online(
292 &mut self,

Callers 1

Calls 3

get_osMethod · 0.80
get_archMethod · 0.80
isMethod · 0.65

Tested by

no test coverage detected