Selenium's webdr开发者_如何学JAVAiver gives me that error when trying to use the Chrome or IE driver. I have got Selenium via Nuget, so it should be giving me the correct libraries. However, it seems to want a reference to Newtonsoft.Json 4.0.2.0 rather than 4.0.3 which is the one currently inside the NuGet package.
How do I get round this issue?
UPDATE
I got this working, in part trying to fix another problem. See my other post: Selenium WebDriver - FirefoxDriver error: Failed to start up socket within 45000
It's the Nuget package. Selenium is relatively new to Nuget, and the team has been having problems building a package that can be used easily. The primary .NET developer has said that the 2.8.x Nuget package will be better. That's due out sometime this week.
you need to use x86 not ANY CPU, then will work. Your project is set to ANY CPU. Change it to x86.
精彩评论