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

Method get_platform_label

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

Source from the content-addressed store, hash-verified

201 }
202
203 fn get_platform_label(&self) -> &str {
204 let os = self.get_os();
205 let arch = self.get_arch();
206 if WINDOWS.is(os) {
207 if X32.is(arch) {
208 "win32-ia32"
209 } else if ARM64.is(arch) {
210 "win32-arm64-x64"
211 } else {
212 "win32-x64"
213 }
214 } else if MACOS.is(os) {
215 if ARM64.is(arch) {
216 "mas-arm64"
217 } else {
218 "mas-x64"
219 }
220 } else if ARM64.is(arch) {
221 "linux-arm64"
222 } else {
223 "linux-x64"
224 }
225 }
226
227 fn request_latest_browser_version_from_online(
228 &mut self,

Callers 1

Calls 3

get_osMethod · 0.80
get_archMethod · 0.80
isMethod · 0.65

Tested by

no test coverage detected