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

Method get_driver_url

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

Source from the content-addressed store, hash-verified

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