Skip to content

Commit f37708b

Browse files
committed
[rust] Minor change. Use constant instead of hardcoded value
1 parent 71ccb89 commit f37708b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rust/src/chrome.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ impl SeleniumManager for ChromeManager {
302302
{
303303
// For discovering the latest driver version, the CfT endpoints are also used
304304
self.request_latest_driver_version_from_online()?
305-
} else if !major_browser_version.is_empty() && major_browser_version_int < 115 {
305+
} else if !major_browser_version.is_empty()
306+
&& major_browser_version_int < MIN_CHROMEDRIVER_VERSION_CFT
307+
{
306308
// For old versions (chromedriver 114-), the traditional method should work:
307309
// https://chromedriver.chromium.org/downloads
308310
self.request_driver_version_from_latest(

0 commit comments

Comments
 (0)