<i id='fCMfR'><tr id='fCMfR'><dt id='fCMfR'><q id='fCMfR'><span id='fCMfR'><b id='fCMfR'><form id='fCMfR'><ins id='fCMfR'></ins><ul id='fCMfR'></ul><sub id='fCMfR'></sub></form><legend id='fCMfR'></legend><bdo id='fCMfR'><pre id='fCMfR'><center id='fCMfR'></center></pre></bdo></b><th id='fCMfR'></th></span></q></dt></tr></i><div id='fCMfR'><tfoot id='fCMfR'></tfoot><dl id='fCMfR'><fieldset id='fCMfR'></fieldset></dl></div>

      • <bdo id='fCMfR'></bdo><ul id='fCMfR'></ul>
      <legend id='fCMfR'><style id='fCMfR'><dir id='fCMfR'><q id='fCMfR'></q></dir></style></legend>

        <small id='fCMfR'></small><noframes id='fCMfR'>

        <tfoot id='fCMfR'></tfoot>

        如何在 selenium c# ChromeDriver 中忽略 ssl_client_socket_impl.cc(1

        How to ignore ssl_client_socket_impl.cc(1061)] handshake failed in selenium c# ChromeDriver(如何在 selenium c# ChromeDriver 中忽略 ssl_client_socket_impl.cc(1061)] 握手失败)
      1. <small id='cz4XX'></small><noframes id='cz4XX'>

      2. <i id='cz4XX'><tr id='cz4XX'><dt id='cz4XX'><q id='cz4XX'><span id='cz4XX'><b id='cz4XX'><form id='cz4XX'><ins id='cz4XX'></ins><ul id='cz4XX'></ul><sub id='cz4XX'></sub></form><legend id='cz4XX'></legend><bdo id='cz4XX'><pre id='cz4XX'><center id='cz4XX'></center></pre></bdo></b><th id='cz4XX'></th></span></q></dt></tr></i><div id='cz4XX'><tfoot id='cz4XX'></tfoot><dl id='cz4XX'><fieldset id='cz4XX'></fieldset></dl></div>

            <tfoot id='cz4XX'></tfoot>
            1. <legend id='cz4XX'><style id='cz4XX'><dir id='cz4XX'><q id='cz4XX'></q></dir></style></legend>
                <bdo id='cz4XX'></bdo><ul id='cz4XX'></ul>
                  <tbody id='cz4XX'></tbody>

                  本文介绍了如何在 selenium c# ChromeDriver 中忽略 ssl_client_socket_impl.cc(1061)] 握手失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我已经添加了

                   ChromeOptions options = new ChromeOptions();
                   options.AddArgument("--ignore-certificate-errors-spki-list");
                   options.AddArgument("--ignore-ssl-errors");
                   options.AddArgument("test-type");
                   options.AddArguments("-incognito");
                   options.AddArgument("no-sandbox");
                   options.AddArgument("--start-maximized");
                   driver = new ChromeDriver(options);
                  

                  但仍然得到:

                  ssl_client_socket_impl.cc(1061)] handshake failed error 
                  

                  如何从控制台抑制这个错误?

                  How to suppress this error from console?

                  推荐答案

                  这个错误信息...

                  [ERROR:ssl_client_socket_openssl.cc(855)] handshake failed; returned -1, SSL error code 1, net_error -2
                  

                  ...暗示 ChromeDriverChrome 浏览器 之间的握手失败 在某个时间点失败.

                  ...implies that the handshake failed between ChromeDriver and Chrome Browser failed at some point.

                  此错误是由于 net::SSLClientSocketImpl::DoHandshake 和 net::SSLClientSocketImpl 在 ssl_client_socket_impl.ccnet::SSLClientSocketImpl::DoHandshake如下:

                  This error is generated due to net::SSLClientSocketImpl::DoHandshake and net::SSLClientSocketImpl implemented in ssl_client_socket_impl.cc net::SSLClientSocketImpl::DoHandshake as follows:

                  int SSLClientSocketImpl::DoHandshake() {
                    crypto::OpenSSLErrStackTracer err_tracer(FROM_HERE);
                    int rv = SSL_do_handshake(ssl_.get());
                    int net_error = OK;
                    if (rv <= 0) {
                      int ssl_error = SSL_get_error(ssl_.get(), rv);
                      if (ssl_error == SSL_ERROR_WANT_CHANNEL_ID_LOOKUP) {
                        // The server supports channel ID. Stop to look one up before returning to
                        // the handshake.
                        next_handshake_state_ = STATE_CHANNEL_ID_LOOKUP;
                        return OK;
                      }
                      if (ssl_error == SSL_ERROR_WANT_X509_LOOKUP &&
                      !ssl_config_.send_client_cert) {
                        return ERR_SSL_CLIENT_AUTH_CERT_NEEDED;
                      }
                      if (ssl_error == SSL_ERROR_WANT_PRIVATE_KEY_OPERATION) {
                        DCHECK(ssl_config_.client_private_key);
                        DCHECK_NE(kSSLClientSocketNoPendingResult, signature_result_);
                        next_handshake_state_ = STATE_HANDSHAKE;
                        return ERR_IO_PENDING;
                      }
                      OpenSSLErrorInfo error_info;
                      net_error = MapLastOpenSSLError(ssl_error, err_tracer, &error_info);
                      if (net_error == ERR_IO_PENDING) {
                        // If not done, stay in this state
                        next_handshake_state_ = STATE_HANDSHAKE;
                        return ERR_IO_PENDING;
                      }
                      LOG(ERROR) << "handshake failed; returned " << rv << ", SSL error code "
                             << ssl_error << ", net_error " << net_error;
                      net_log_.AddEvent(
                      NetLogEventType::SSL_HANDSHAKE_ERROR,
                      CreateNetLogOpenSSLErrorCallback(net_error, ssl_error, error_info));
                    }
                    next_handshake_state_ = STATE_HANDSHAKE_COMPLETE;
                    return net_error;
                  }
                  

                  根据 ERROR:ssl_client_socket_openssl.cc 握手失败主要问题是 ChromeDriverChromeSSL 页面 握手时 handshake失败>.虽然 Chromium 团队通过 net_unittestscontent_testsbrowser_testsSSL 握手 进行了测试但并非详尽.依赖上游测试,一些用例被遗漏了.

                  As per ERROR:ssl_client_socket_openssl.cc handshake failed the main issue is the failure of handshake when ChromeDriver handshakes with SSL pages in Chrome. Though Chromium team conducts test for SSL handshake through net_unittests, content_tests, and browser_tests but were not exhaustive. Some usecases are left out relying on the upstream tests.

                  此错误不会中断您的测试套件执行,您可以暂时忽略此问题,直到它得到修复Chromium 团队.

                  This error won't interupt the execution of your Test Suite and you can ignore this issue for the time being till it is fixed by the Chromium Team.

                  这篇关于如何在 selenium c# ChromeDriver 中忽略 ssl_client_socket_impl.cc(1061)] 握手失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  C# namespace alias - what#39;s the point?(C# 命名空间别名 - 有什么意义?)
                  Using Xpath With Default Namespace in C#(在 C# 中使用具有默认命名空间的 Xpath)
                  Generating an EDMX from a DB2 Database(从 DB2 数据库生成 EDMX)
                  IBM .NET Data Provider Connection String issue with Library List(库列表的 IBM .NET 数据提供程序连接字符串问题)
                  .NET DB2 OLEDB pre-requisites(.NET DB2 OLEDB 先决条件)
                  Referring to Code in IBM.Data.DB2 makes that Assembly Unavailable to the rest of my Solution(引用 IBM.Data.DB2 中的代码使该程序集对我的解决方案的其余部分不可用)
                  • <legend id='qbdwb'><style id='qbdwb'><dir id='qbdwb'><q id='qbdwb'></q></dir></style></legend>
                      <bdo id='qbdwb'></bdo><ul id='qbdwb'></ul>

                      <small id='qbdwb'></small><noframes id='qbdwb'>

                      <tfoot id='qbdwb'></tfoot>
                      <i id='qbdwb'><tr id='qbdwb'><dt id='qbdwb'><q id='qbdwb'><span id='qbdwb'><b id='qbdwb'><form id='qbdwb'><ins id='qbdwb'></ins><ul id='qbdwb'></ul><sub id='qbdwb'></sub></form><legend id='qbdwb'></legend><bdo id='qbdwb'><pre id='qbdwb'><center id='qbdwb'></center></pre></bdo></b><th id='qbdwb'></th></span></q></dt></tr></i><div id='qbdwb'><tfoot id='qbdwb'></tfoot><dl id='qbdwb'><fieldset id='qbdwb'></fieldset></dl></div>

                              <tbody id='qbdwb'></tbody>