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

Method get_driver_url

rust/src/firefox.rs:320–354  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

318 }
319
320 fn get_driver_url(&mut self) -> Result<String, Error> {
321 let driver_version = self.get_driver_version();
322 let os = self.get_os();
323 let arch = self.get_arch();
324
325 let driver_label = if WINDOWS.is(os) {
326 if X32.is(arch) {
327 "win32.zip"
328 } else if ARM64.is(arch) {
329 "win-aarch64.zip"
330 } else {
331 "win64.zip"
332 }
333 } else if MACOS.is(os) {
334 if ARM64.is(arch) {
335 "macos-aarch64.tar.gz"
336 } else {
337 "macos.tar.gz"
338 }
339 } else if X32.is(arch) {
340 "linux32.tar.gz"
341 } else if ARM64.is(arch) {
342 "linux-aarch64.tar.gz"
343 } else {
344 "linux64.tar.gz"
345 };
346 Ok(format!(
347 "{}download/v{}/{}-v{}-{}",
348 self.get_driver_mirror_url_or_default(DRIVER_URL),
349 driver_version,
350 self.driver_name,
351 driver_version,
352 driver_label
353 ))
354 }
355
356 fn get_driver_path_in_cache(&self) -> Result<PathBuf, Error> {
357 Ok(compose_driver_path_in_cache(

Callers 1

test_driver_urlFunction · 0.45

Calls 4

get_driver_versionMethod · 0.80
get_osMethod · 0.80
get_archMethod · 0.80
isMethod · 0.65

Tested by 1

test_driver_urlFunction · 0.36