728x90
WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:56922
from session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 116.0.5845.97

이런 오류가 발생한다면,

options = uc.ChromeOptions()
options.add_argument('--no-sandbox') 
options.add_argument('--disable-dev-shm-usage')

d = DesiredCapabilities.CHROME 
d["goog:loggingPrefs"] = {"browser": "INFO"}
chromedriver_path = r"c:\jupyter_notebook\chromedriver116.exe" 

browser = uc.Chrome(driver_executable_path=chromedriver_path, use_subprocess=True, options=options, desired_capabilities=d)

chromedriver 116 버전으로 다운 받아놓고, 위와 같이 처리하면 됨.

출처 : https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1477

728x90

+ Recent posts