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

Method get_driver_url

rust/src/edge.rs:311–338  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

309 }
310
311 fn get_driver_url(&mut self) -> Result<String, Error> {
312 let driver_version = self.get_driver_version();
313 let os = self.get_os();
314 let arch = self.get_arch();
315 let driver_label = if WINDOWS.is(os) {
316 if ARM64.is(arch) {
317 "arm64"
318 } else if X32.is(arch) {
319 "win32"
320 } else {
321 "win64"
322 }
323 } else if MACOS.is(os) {
324 if ARM64.is(arch) { "mac64_m1" } else { "mac64" }
325 } else if LINUX.is(os) && ARM64.is(arch) {
326 return Err(anyhow!(
327 "Linux arm64 is not supported yet by Microsoft Edge. Please try another browser."
328 ));
329 } else {
330 "linux64"
331 };
332 Ok(format!(
333 "{}{}/edgedriver_{}.zip",
334 self.get_driver_mirror_url_or_default(DRIVER_URL),
335 driver_version,
336 driver_label
337 ))
338 }
339
340 fn get_driver_path_in_cache(&self) -> Result<PathBuf, Error> {
341 Ok(compose_driver_path_in_cache(

Callers 1

download_driverMethod · 0.45

Calls 4

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

Tested by

no test coverage detected