[🐛 Bug]: Selenium manager not found via Anaconda distribution
See original GitHub issueWhat happened?
I tried to test new Selenium manager feature with Python 3.9.13 and Edge 107.0.1418.35 (Stable) (64bit), but the exception occurs.
The code I tried
from selenium import webdriver
driver = webdriver.Edge()
and the message is this
WebDriverException: Message: 'msedgedriver' executable needs to be in PATH. Please download from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
If I enter msedge on the ‘Run’ window, Edge browser opens normally.
How can we reproduce the issue?
from selenium import webdriver
driver = webdriver.Edge()
Relevant log output
WebDriverException Traceback (most recent call last)
C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\common\service.py in start(self)
96 try:
---> 97 path = SeleniumManager.driver_location(browser)
98 except WebDriverException as new_err:
C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\common\selenium_manager.py in driver_location(browser)
66
---> 67 args = (str(SeleniumManager.get_binary()), "--browser", browser)
68 result = SeleniumManager.run(args)
C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\common\selenium_manager.py in get_binary()
51 if not path.is_file():
---> 52 raise WebDriverException("Unable to obtain Selenium Manager")
53
WebDriverException: Message: Unable to obtain Selenium Manager
During handling of the above exception, another exception occurred:
WebDriverException Traceback (most recent call last)
<ipython-input-2-9e8e880ac5d1> in <cell line: 1>()
----> 1 driver = webdriver.Edge()
C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\edge\webdriver.py in __init__(self, executable_path, port, options, service_args, capabilities, service_log_path, service, keep_alive, verbose)
71 service = Service(executable_path, port, service_args, service_log_path)
72
---> 73 super().__init__(
74 DesiredCapabilities.EDGE["browserName"],
75 "ms",
C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\chromium\webdriver.py in __init__(self, browser_name, vendor_prefix, port, options, service_args, desired_capabilities, service_log_path, service, keep_alive)
101
102 self.service = service
--> 103 self.service.start()
104
105 try:
C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\common\service.py in start(self)
98 except WebDriverException as new_err:
99 logger.debug("Unable to obtain driver using Selenium Manager: " + new_err.msg)
--> 100 raise err
101
102 self._start_process(path)
C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\common\service.py in start(self)
89 """
90 try:
---> 91 self._start_process(self.path)
92 except WebDriverException as err:
93 if "executable needs to be in PATH" in err.msg:
C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\common\service.py in _start_process(self, path)
201 except OSError as err:
202 if err.errno == errno.ENOENT:
--> 203 raise WebDriverException(
204 f"'{os.path.basename(self.path)}' executable needs to be in PATH. {self.start_error_message}"
205 )
WebDriverException: Message: 'msedgedriver' executable needs to be in PATH. Please download from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
Operating System
Windows 10 Enterprise 22H2
Selenium version
Python 4.6.0
What are the browser(s) and version(s) where you see this issue?
Edge 107.0.1418.35 (Stable) (64bit)
What are the browser driver(s) and version(s) where you see this issue?
Selenium Manager
Are you using Selenium Grid?
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:18 (11 by maintainers)
Top Results From Across the Web
No module named 'webdriver_manager' error even after ...
First install webdriver manager using the following command in command prompt opened from the python file path.
Read more >Could not find version that satisfies requirement webdriver
The error "Could not find a version that satisfies the requirement webdriver" occurs for multiple reasons: Pip installing the wrong package. The ...
Read more >Troubleshooting — Anaconda documentation
I get an error message that says “activate.bat is not a recognized file or ... You may get “conda not found” or “conda...
Read more >HTTP 000 Connection Failed during conda install with new ...
Unable to install any packages with Conda command lines or the Anaconda Navigator. Anaconda Navigator never completes install. Conda returns the ...
Read more >Webdriver Manager for Python - PyPI
Webdriver Manager for Python ... The main idea is to simplify management of binary drivers for different browsers. For now support: ... Compatible...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi, @symonk This is the output you requested.
Plus, I can see
selenium_manager.pyinsideC:\ProgramData\Anaconda3\Lib\site-packages\selenium\webdriver\commonBy the way, I tried same code on Windows 11 22H2, Edge 107.0.1418.35 (Stable) (64 bit), Python 3.9.13 and the same error has raised.Fixed in #11329