from selenium import webdriver
driver=webdriver.Chrome()
它给出了错误-
NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
我已访问该网站并尝试过,但问题仍然存在
我希望简单的硒自动化代码能够运行
您需要在您的计算机上以及 Selenium 可以轻松访问并使用它分别控制您的 Google Chrome 或 Firefox 浏览器的文件夹中安装 Chromedriver 或 Geckodriver。您检查过您是否下载并解压了这些浏览器吗?
在此处下载 Chromedriver https://chromedriver.chromium.org/downloads。如果您需要更多帮助来运行代码,请告诉我。