我用的是 C# CefSharp79.1.360 Selenium 3.141.0(chromedriver.exe79.0.3945.36)
代码如下: CefSettings settings = new CefSettings(); settings.RemoteDebuggingPort = 9222; Cef.Initialize(settings);
browser = new ChromiumWebBrowser("about:blank");
Controls.Add(browser);
Thread.Sleep(1000);
ChromeOptions options = new ChromeOptions();
options.DebuggerAddress = "localhost:9222";
ChromeDriver driver = new ChromeDriver(options);///执行到这句报错、、、、、、、、、
报错信息: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:50143/session. The status of the exception was ReceiveFailure, and the message was: 基础连接已经关闭: 接收时发生错误。
很怀疑,到底 Selenium 支不支持嵌入 CefSharp 的,,,谁成功过的吗?