WebDriver.dll中发生类型为'System.InvalidOperationException'的未处理异常 [英] An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll
本文介绍了WebDriver.dll中发生类型为'System.InvalidOperationException'的未处理异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在学习Selenium C#教程,目前处于第一阶段.因此,当我运行控制台应用程序时,出现以下错误.
I'm following a selenium C# tutorial and I'm in the first stage. So when I run my console application I got the following error.
类型为'System.InvalidOperationException'的未处理异常 发生在WebDriver.dll
An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll
其他信息:未知错误:无法识别的眨眼修订版: 3b3c00f2d95c45cca18ab944acced413fb759311
Additional information: unknown error: unrecognized Blink revision: 3b3c00f2d95c45cca18ab944acced413fb759311
在控制台中说
仅允许本地连接
Only local connections are allowed
我的代码
class Program
{
static void Main(string[] args)
{
IWebDriver driver = new ChromeDriver();
driver.Navigate().GoToUrl("http://www.google.lk");
}
}
推荐答案
try downloading the driver and give its path to constructor - LINK
driver = new ChromeDriver(DRIVER_PATH);
这篇关于WebDriver.dll中发生类型为'System.InvalidOperationException'的未处理异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文