SeleniumHQ/selenium · error · anyhow::Error

{}{} cannot be downloaded

Error message

{}{} cannot be downloaded

What it means

Error "{}{} cannot be downloaded" thrown in SeleniumHQ/selenium.

Source

Thrown at rust/src/lib.rs:671

    ) -> Result<(), Error> {
        if self.is_download_browser()
            && !self.is_avoid_browser_download()
            && !self.is_iexplorer()
            && !self.is_grid()
            && !self.is_safari()
            && !self.is_webview2()
            && !self.is_electron()
        {
            let browser_path = self.download_browser(original_browser_version)?;
            if browser_path.is_some() {
                self.get_logger().debug(format!(
                    "{} {} is available at {}",
                    self.get_browser_name(),
                    self.get_browser_version(),
                    browser_path.unwrap().display()
                ));
            } else if !self.is_iexplorer() && !self.is_grid() && !self.is_safari() {
                return Err(anyhow!(format!(
                    "{}{} cannot be downloaded",
                    self.get_browser_name(),
                    self.get_browser_version_label()
                )));
            }
        }
        Ok(())
    }

    fn discover_driver_version(&mut self) -> Result<String, Error> {
        // We request the driver version using online endpoints
        let driver_version = self.request_driver_version()?;
        if driver_version.is_empty() {
            Err(anyhow!(format!(
                "The {} version cannot be discovered",
                self.get_driver_name()
            )))
        } else {

View on GitHub (pinned to aa36b38e69)

Solutions

  1. Check that the requested browser name and version are valid and downloadable by Selenium Manager
  2. Remove the version pin to use the latest downloadable version
  3. Install the browser manually and pass --browser-path

When it happens

Trigger: Thrown at rust/src/lib.rs:671 when the library encounters an invalid state.

Common situations: Occurs when the requested artifact has no downloadable distribution (e.g., unsupported platform). Verify the name/platform combination is supported or provide the binary manually via its path option.


AI-assisted analysis of SeleniumHQ/selenium@aa36b38e69 (2026-08-14). Data as JSON: /api/errors/e866d73b88615d4d. Report an issue: GitHub.