Skip to content

[🐛 Bug]: Selenium look for selenium-manager only from %ANACONDAPATH%\bin\ #13076

@Fradhyle

Description

@Fradhyle

What happened?

I'm using Selenium 4.14.0 with selenium-manager 4.14.0
I've tried to obtain WebDrive with selenium-manager, but Selenium look for selenium-manager only from 'bin' folder under Anaconda path.
But my selenium-manager is in 'Scripts' folder.
I don't know which one is right location but I think it should be fixed.
I've already added C:\ProgramData\Anaconda3, C:\ProgramData\Anaconda3\Library\bin, C:\ProgramData\Anaconda3\Scripts to my system variable PATH

How can we reproduce the issue?

Just run this code

driver = webdriver.Edge()

Relevant log output

WebDriverException                        Traceback (most recent call last)
File C:\ProgramData\Anaconda3\Lib\site-packages\selenium\webdriver\common\driver_finder.py:38, in DriverFinder.get_path(service, options)
     37 try:
---> 38     path = SeleniumManager().driver_location(options) if path is None else path
     39 except Exception as err:

File C:\ProgramData\Anaconda3\Lib\site-packages\selenium\webdriver\common\selenium_manager.py:81, in SeleniumManager.driver_location(self, options)
     79 browser = options.capabilities["browserName"]
---> 81 args = [str(self.get_binary()), "--browser", browser]
     83 if options.browser_version:

File C:\ProgramData\Anaconda3\Lib\site-packages\selenium\webdriver\common\selenium_manager.py:65, in SeleniumManager.get_binary()
     64 if not path.is_file():
---> 65     raise WebDriverException(f"Unable to obtain working Selenium Manager binary; {path}")
     67 logger.debug("Selenium Manager binary found at: %s", path)

WebDriverException: Message: Unable to obtain working Selenium Manager binary; C:\ProgramData\Anaconda3\bin\selenium-manager.exe

Operating System

Windows 10 Enterprise 22H2

Selenium version

Python 4.14.0

What are the browser(s) and version(s) where you see this issue?

Microsoft Edge for Business 118.0.2088.76 (Stable) (64 bit)

What are the browser driver(s) and version(s) where you see this issue?

EdgeDriver 118.0.2088.76 (Stable) (64 bit)

Are you using Selenium Grid?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions