Trouble shooting
chrome driver 버전 오류
ParkParksu
2023. 8. 29. 13:44
예전에는 잘되었는데 안된다...
크롬의 업데이트로 인해서
크롬 116 버전, 크롬드라이버는 114 구버전.
버전이 매칭되지 않는 오류이다.
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 116.0.5845.111 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
해결
webdriver-manager 를 이용해서 해결
webdrvier-manager 설치
pip install webdriver-manager
한뒤에
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
728x90