-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as not planned
Labels
I-defectSomething is not working as intendedSomething is not working as intended
Description
What happened?
Error received was:
selenium.common.exceptions.SeleniumManagerException: Message: /usr/lib/python3/dist-packages/selenium/webdriver/common/linux/selenium-manager is missing. Please open an issue on https://github.com/SeleniumHQ/selenium/issues
How can we reproduce the issue?
The error happened when running this test program:
-----------------------------
import bs4
from selenium import webdriver
def main():
driver = webdriver.Firefox(options=webdriver.FirefoxOptions())
driver.get("https://example.com")
driver.implicitly_wait(20)
if __name__ == "__main__":
main()
-----------------------------
Selenium and Python3 are installed through Debian's package managerRelevant log output
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/selenium/webdriver/common/service.py", line 97, in start
path = SeleniumManager().driver_location(browser)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/selenium/webdriver/common/selenium_manager.py", line 75, in driver_location
str(self.get_binary()),
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/selenium/webdriver/common/selenium_manager.py", line 56, in get_binary
raise SeleniumManagerException(f"{path} is missing. Please open an issue on {tracker}")
selenium.common.exceptions.SeleniumManagerException: Message: /usr/lib/python3/dist-packages/selenium/webdriver/common/linux/selenium-manager is missing. Please open an issue on https://github.com/SeleniumHQ/selenium/issues
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/me/testcode/./selenium-dynamic.py", line 14, in <module>
main()
File "/home/me/testcode/./selenium-dynamic.py", line 9, in main
driver = webdriver.Firefox(options=webdriver.FirefoxOptions())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/webdriver.py", line 194, in __init__
self.service.start()
File "/usr/lib/python3/dist-packages/selenium/webdriver/common/service.py", line 100, in start
raise err
File "/usr/lib/python3/dist-packages/selenium/webdriver/common/service.py", line 90, in start
self._start_process(self.path)
File "/usr/lib/python3/dist-packages/selenium/webdriver/common/service.py", line 218, in _start_process
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.Operating System
Debian 12 stable
Selenium version
Python 3.11.2
What are the browser(s) and version(s) where you see this issue?
Firefox 128.4.0esr (64-bit)
What are the browser driver(s) and version(s) where you see this issue?
I'm unsure how to find this, and beleive Selenium picked a default
Are you using Selenium Grid?
No
Metadata
Metadata
Assignees
Labels
I-defectSomething is not working as intendedSomething is not working as intended