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

Method min_version_for_platform

rust/src/chrome.rs:144–150  ·  view source on GitHub ↗

CfT publishes Linux arm64 binaries later than the rest of the platforms, so the minimum version available for download is higher there than the general CfT minimum.

(&self, min_cft_version: i32)

Source from the content-addressed store, hash-verified

142 // CfT publishes Linux arm64 binaries later than the rest of the platforms, so the minimum
143 // version available for download is higher there than the general CfT minimum.
144 fn min_version_for_platform(&self, min_cft_version: i32) -> i32 {
145 if LINUX.is(self.get_os()) && ARM64.is(self.get_arch()) {
146 MIN_CHROME_VERSION_LINUX_ARM64.max(min_cft_version)
147 } else {
148 min_cft_version
149 }
150 }
151
152 fn request_driver_version_from_latest(&self, driver_url: &str) -> Result<String, Error> {
153 self.log.debug(format!(

Calls 3

get_osMethod · 0.80
get_archMethod · 0.80
isMethod · 0.65

Tested by

no test coverage detected