@@ -153,6 +153,18 @@ def get_uc_driver_version():
153153 return uc_driver_version
154154
155155
156+ def find_driver_version_to_use (use_version ):
157+ # Because https://chromedriver.chromium.org/downloads stops at 114
158+ final_chromedriver = "114"
159+ if (
160+ use_version
161+ and use_version .isdigit ()
162+ and int (use_version ) > int (final_chromedriver )
163+ ):
164+ use_version = final_chromedriver
165+ return use_version
166+
167+
156168def has_cf (text ):
157169 if (
158170 "<title>Just a moment...</title>" in text
@@ -2832,14 +2844,15 @@ def get_local_driver(
28322844 elif headless :
28332845 if "--headless" not in chrome_options .arguments :
28342846 chrome_options .add_argument ("--headless" )
2835- disable_build_check = False
2847+ disable_build_check = True # True is NEW for Chrome 115 changes!
28362848 uc_driver_version = None
28372849 if is_using_uc (undetectable , browser_name ):
28382850 uc_driver_version = get_uc_driver_version ()
28392851 if multi_proxy :
28402852 from seleniumbase import config as sb_config
28412853
28422854 sb_config .multi_proxy = True
2855+ use_version = find_driver_version_to_use (use_version )
28432856 if (
28442857 LOCAL_CHROMEDRIVER
28452858 and os .path .exists (LOCAL_CHROMEDRIVER )
@@ -2994,6 +3007,7 @@ def get_local_driver(
29943007 )
29953008 with uc_lock : # Avoid multithreaded issues
29963009 uc_driver_version = get_uc_driver_version ()
3010+ use_version = find_driver_version_to_use (use_version )
29973011 if (
29983012 (
29993013 uc_driver_version != use_version
@@ -3168,6 +3182,7 @@ def get_local_driver(
31683182 and int (major_chrome_version ) >= 86
31693183 ):
31703184 mcv = major_chrome_version
3185+ mcv = find_driver_version_to_use (mcv )
31713186 headless = True
31723187 headless_options = _set_chrome_options (
31733188 browser_name ,
0 commit comments