求助探讨, CefSharp 嵌入控件能不能配合 Selenium 一起使用!
<p>我用的是 C# CefSharp79.1.360 Selenium 3.141.0(chromedriver.exe79.0.3945.36)</p>
<p>代码如下: CefSettings settings = new CefSettings(); settings.RemoteDebuggingPort = 9222; Cef.Initialize(settings);</p>
<pre><code> browser = new ChromiumWebBrowser("about:blank");
Controls.Add(browser);
Thread.Sleep(1000);
ChromeOptions options = new ChromeOptions();
options.DebuggerAddress = "localhost:9222";
ChromeDriver driver = new ChromeDriver(options);///执行到这句报错、、、、、、、、、
</code></pre>
<p>报错信息: 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: 基础连接已经关闭: 接收时发生错误。</p>
<p>很怀疑,到底 Selenium 支不支持嵌入 CefSharp 的,,,谁成功过的吗?</p>
收藏(0)
分享
相关标签:
注意:本文归作者所有,未经作者允许,不得转载