Skip to content

Commit

Permalink
[rust] Minor change. Use constant instead of hardcoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Aug 28, 2023
1 parent 71ccb89 commit f37708b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/src/chrome.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ impl SeleniumManager for ChromeManager {
{
// For discovering the latest driver version, the CfT endpoints are also used
self.request_latest_driver_version_from_online()?
} else if !major_browser_version.is_empty() && major_browser_version_int < 115 {
} else if !major_browser_version.is_empty()
&& major_browser_version_int < MIN_CHROMEDRIVER_VERSION_CFT
{
// For old versions (chromedriver 114-), the traditional method should work:
// https://chromedriver.chromium.org/downloads
self.request_driver_version_from_latest(
Expand Down

0 comments on commit f37708b

Please sign in to comment.