简体   繁体   中英

An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll

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.

An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll

Additional information: unknown error: unrecognized Blink revision: 3b3c00f2d95c45cca18ab944acced413fb759311

And in the console it says

Only local connections are allowed

My code

 class Program
    {
        static void Main(string[] args)
        {
            IWebDriver driver = new ChromeDriver();

            driver.Navigate().GoToUrl("http://www.google.lk");
        }
    }

尝试下载驱动程序并将其路径提供给构造函数 - LINK

driver = new ChromeDriver(DRIVER_PATH);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM