小编Eld*_*Guy的帖子

ChromeDriverManager().install() 不起作用。(网络驱动程序管理器)

我在 TEST.py:32 中尝试了下面的代码

print("ChromeDriverManager().install() :", ChromeDriverManager().install())
Run Code Online (Sandbox Code Playgroud)
[WDM] - ====== WebDriver manager ======
2022-07-05 19:49:04,445 INFO ====== WebDriver manager ======
Traceback (most recent call last):
  File "d:\Python\PYTHONWORKSPACE\repo\Auto-booking-master\src\TEST.py", line 32, in <module>
    print("ChromeDriverManager().install() :", ChromeDriverManager().install())
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\webdriver_manager\chrome.py", line 38, in install
    driver_path = self._get_driver_path(self.driver)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\webdriver_manager\core\manager.py", line 29, in _get_driver_path
    binary_path = self.driver_cache.find_driver(driver)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\webdriver_manager\core\driver_cache.py", line 95, in find_driver
    driver_version = driver.get_version()
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\webdriver_manager\core\driver.py", line 43, in get_version
    self.get_latest_release_version()
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\webdriver_manager\drivers\chrome.py", line 37, in get_latest_release_version
    self.browser_version = get_browser_version_from_os(self.chrome_type)
  File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\webdriver_manager\core\utils.py", line 152, …
Run Code Online (Sandbox Code Playgroud)

python selenium

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

python ×1

selenium ×1