尝试使用Selenium W/C#,当我得到一个错误。我昨天确实使用了硒,而且我有0个问题。并想知道是什么原因造成的。获取未处理的异常错误信息:System.IO.FileNotFoundException:
错误
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'WebDriver, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at ConsoleApplication1.Program.Main(String[] args)
我做些什么来重建错误
public static void Main(string[] args)
{
IWebDriver driver2 = new ChromeDriver();
driver2.Navigate().GoToUrl("https://google.com")
}
从你的错误的细节,它看起来像有人移除了webdriver的DLL无论你的程序是寻找它。 – krillgar
我使用jetbrain的IDA(Rider),它允许我从IDA安装软件包。我重新安装了它,但仍然遇到同样的问题。 – nooby