Fixing Selenium v4.10+ TypeError and webdriver-manager Errors
How to resolve the TypeError and "webdriver-manager LATEST_RELEASE not found" error occurring in the latest version of Selenium.
This post was machine-translated from Korean by AI. Some expressions may differ from the original.
Read the original (Korean)I was trying to create a Selenium bot, but after simply running pip3 install selenium and applying my existing code, I encountered all sorts of errors.

- An error occurred because
webdriver-managercould not find the latest Chrome driver.
> pip3Ā installĀ git+https://github.com/SergeyPirogov/webdriver_manager
# Solved by installing the latest webdriver_manager

- The latest version of
webdriver-managerrequires Python 3.7 or higher.
# Install Python 3.7 or higher

- The highlighted part is the error, stating TypeError: init() got multiple values for argument 'options'.
Actually, the error isn't caused by options. Apparently, starting from Selenium 4.10 (I think?), the method for specifying the webdriver path has changed and now requires using Service.
fromĀ selenium.webdriver.chrome.serviceĀ importĀ Service
...
self.driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)# Use ChromeDriverManager().install() via Selenium Service
- Additionally,
desired_capabilitieshas been deprecated. I found it annoying, so I just removed thedesired_capabilitiesfeature I was previously using.
If anyone knows how to migrate this to options or use it via another method, I would appreciate a comment.
Comments