gpt4 book ai didi

c# - Visual Studio Mac 无法识别路径中的 Chrome 驱动程序

转载 作者:太空宇宙 更新时间:2023-11-03 22:45:04 32 4
gpt4 key购买 nike

我刚开始使用 C# 开发 Selenium WebDriver。我有在 Windows 上使用 Java 和 Python 的背景。所以我也是 OSX、Visual Studio 和 C# 的新手。我已经使用 .NET 应用程序控制台启动了一个项目,将 Selenium 包添加到 NuGet,并将 ChromeDriver 下载/添加到项目路径。我很困惑为什么会收到此错误。

OpenQA.Selenium.DriverServiceNotFoundException has been thrown

"The chromedriver file does not exist in the current directory or in a
directory on the PATH environment variable. The driver can be
downloaded at https://chromedriver.storage.googleapis.com/
index.html."

合作Visual Studio 7.5(内部版本 1254)macOS High Sierra 版本 10.13.4

我还向 bash_profile 添加了 Chrome 驱动程序路径。

感谢任何帮助。如果需要更多信息,我会毫不犹豫地提供 :) 谢谢!

IDE

Path

最佳答案

您必须将 ChromeDriver.exe 文件放在 bin/debug 文件夹中。

更多安装说明在 https://www.kenst.com/2015/03/installing-chromedriver-on-mac-osx/

关于c# - Visual Studio Mac 无法识别路径中的 Chrome 驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50373656/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com