on3.7/site-packages/selenium/webdriver/common/driver_finder.py in get_path(service, options) 41 try: ---> 42 path = SeleniumManager().driver_location(options) if path is None else path 43 except Exception as err: /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/selenium/webdriver/common/selenium_manager.py in driver_location(self, options) 95 ---> 96 result = self.run(args) 97 executable = result.split("\t")[-1].strip() /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/selenium/webdriver/common/selenium_manager.py in run(args) 120 if completed_proc.returncode: --> 121 raise WebDriverException(f"Unsuccessful command executed: {command}.\n{result}{stderr}") 122 else: WebDriverException: Message: Unsuccessful command executed: /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/selenium/webdriver/common/linux/selenium-manager --browser MicrosoftEdge --output json. request or response body error: operation timed out During handling of the above exception, another exception occurred: NoSuchDriverException Traceback (most recent call last)/tmp/ipykernel_94/3666868230.py in <module>
时间: 2024-01-03 22:05:53 浏览: 483
https://pub.dev/packages/anim_search_bar-Flutter开发
根据您的代码和错误信息,看起来您在使用Selenium WebDriver时遇到了问题。NoSuchDriverException错误表明您的代码无法找到指定的驱动程序。
这个问题可能是由于没有正确安装或配置WebDriver驱动程序引起的。您需要根据您要使用的浏览器类型下载对应的WebDriver驱动程序,并确保将其正确配置到您的代码中。
此外,还需要确保您的网络连接正常,以便能够下载所需的驱动程序。
如果您需要进一步的帮助,请提供更多的代码和详细的错误信息,以便我能够更好地帮助您解决问题。
阅读全文