selenium.common.exceptions.SeleniumManagerException

229 views
Skip to first unread message

Douglas McKinley

unread,
May 8, 2023, 7:35:54 AM5/8/23
to Selenium Users
Attempting to follow hardcoded setup option (option4) on https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/

The belowerror is produced; marked as closed at https://github.com/SeleniumHQ/selenium/issues/11753 and duplicated at https://github.com/SeleniumHQ/selenium/issues/11234


* Sample code that you are using which can reproduce the problem.
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
service = Service(executable_path="/Users/douglasmckinley/Downloads/chromedriver_mac64\(1\)/chromedriver")
driver = webdriver.Chrome(service=service)
driver = webdriver.Chrome()
driver.get("http://selenium.dev")
driver.quit()

* What version of Selenium are you using ?
4.9.0
* Do you have the link to a public facing site which can be used to reproduce the problem (or) atleast a complete HTML page source of the page ?
No; running locally in PyCharm
* What flavor of browser are you using and what is its version ?
* Operating system name and version.
MacOSMonterey 12.3.1
* Details of the error/stacktrace etc which shows the details of the problem you are facing.
/Users/douglasmckinley/.conda/envs/carPuppetTwo/bin/python /Users/douglasmckinley/PycharmProjects/carPuppetTwo/chrome.py
Unable to obtain driver using Selenium Manager: /Users/douglasmckinley/.conda/envs/carPuppetTwo/lib/python3.10/site-packages/selenium/webdriver/common/macos/selenium-manager is missing.  Please open an issue on https://github.com/SeleniumHQ/selenium/issues
Traceback (most recent call last):
  File "/Users/douglasmckinley/PycharmProjects/carPuppetTwo/chrome.py", line 5, in <module>
    driver = webdriver.Chrome(service=service)
  File "/Users/douglasmckinley/.conda/envs/carPuppetTwo/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 82, in __init__
    service.path = DriverFinder.get_path(service, options)
  File "/Users/douglasmckinley/.conda/envs/carPuppetTwo/lib/python3.10/site-packages/selenium/webdriver/common/driver_finder.py", line 43, in get_path
    raise err
  File "/Users/douglasmckinley/.conda/envs/carPuppetTwo/lib/python3.10/site-packages/selenium/webdriver/common/driver_finder.py", line 40, in get_path
    path = shutil.which(service.path) or SeleniumManager().driver_location(options)
  File "/Users/douglasmckinley/.conda/envs/carPuppetTwo/lib/python3.10/site-packages/selenium/webdriver/common/selenium_manager.py", line 90, in driver_location
    args = [str(self.get_binary()), "--browser", browser, "--output", "json"]
  File "/Users/douglasmckinley/.conda/envs/carPuppetTwo/lib/python3.10/site-packages/selenium/webdriver/common/selenium_manager.py", line 61, in get_binary
    raise SeleniumManagerException(f"{path} is missing.  Please open an issue on {tracker}")
selenium.common.exceptions.SeleniumManagerException: Message: /Users/douglasmckinley/.conda/envs/carPuppetTwo/lib/python3.10/site-packages/selenium/webdriver/common/macos/selenium-manager is missing.  Please open an issue on https://github.com/SeleniumHQ/selenium/issues


Process finished with exit code 1
Reply all
Reply to author
Forward
0 new messages