1. 에러 현상

요새 Python Selenium을 이용해서 자동화 툴을 만들고 테스트 중인데,

갑자기 어느 순간부터 아래와 같은 에러를 발생하고 프로그램이 죽었다.

 

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of Microsoft Edge WebDriver only supports Microsoft Edge version 122
Current browser version is 124.0.2478.51 with binary path C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe

 

 

2. 해결방법

생각보다 해결방법은 간단하다.

에러 문구를 보면, 나의 라이브러리나 Edge가 새로 업데이트 되서 문제가 발생한 것 같지만

Edge 드라이버를 최신 버전으로 다시 설치하면 해결된다.

 

링크는 아래를 참조하면 된다.

 

https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/?form=MA13LH#downloads