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

Method get_platform_label

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

get_osMethod · 0.80
get_archMethod · 0.80
isMethod · 0.65

Tested by

no test coverage detected