• <bdo id='RlZ4b'></bdo><ul id='RlZ4b'></ul>

    1. <tfoot id='RlZ4b'></tfoot>

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

      <i id='RlZ4b'><tr id='RlZ4b'><dt id='RlZ4b'><q id='RlZ4b'><span id='RlZ4b'><b id='RlZ4b'><form id='RlZ4b'><ins id='RlZ4b'></ins><ul id='RlZ4b'></ul><sub id='RlZ4b'></sub></form><legend id='RlZ4b'></legend><bdo id='RlZ4b'><pre id='RlZ4b'><center id='RlZ4b'></center></pre></bdo></b><th id='RlZ4b'></th></span></q></dt></tr></i><div id='RlZ4b'><tfoot id='RlZ4b'></tfoot><dl id='RlZ4b'><fieldset id='RlZ4b'></fieldset></dl></div>
    2. <legend id='RlZ4b'><style id='RlZ4b'><dir id='RlZ4b'><q id='RlZ4b'></q></dir></style></legend>
    3. org.openqa.selenium.remote.internal.ApacheHttpClient 在 Selen

      org.openqa.selenium.remote.internal.ApacheHttpClient is deprecated in Selenium 3.14.0 - What should be used instead?(org.openqa.selenium.remote.internal.ApacheHttpClient 在 Selenium 3.14.0 中已弃用 - 应该改用什么?) - IT屋-程序员软件开发技术

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

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

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

                本文介绍了org.openqa.selenium.remote.internal.ApacheHttpClient 在 Selenium 3.14.0 中已弃用 - 应该改用什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我目前正在使用 Selenium 3.14.0 库,其中 org.openqa.selenium.remote.internal.ApacheHttpClient 已被弃用,没有其他信息.应该改用哪个?

                I am currently using Selenium 3.14.0 library in which org.openqa.selenium.remote.internal.ApacheHttpClient is deprecated with no other information. Which should be used instead?

                该类已在下一个版本 3.141.59 中删除.

                The class is already removed in the next version, 3.141.59.

                我将它与 EdgeDriver 服务一起使用,如下所示:

                I am using it with EdgeDriver Service like following:

                final int connectionTimeout = 2 * 60 * 1000;
                final int socketTimeout = 10 * 60 * 1000; // 10 minute timeout
                final ApacheHttpClient.Factory clientFactory = new ApacheHttpClient.Factory(
                    new HttpClientFactory(connectionTimeout, socketTimeout));
                
                ...
                
                edgeDriverService = new EdgeDriverService.Builder()
                                        .usingDriverExecutable(edgeDriver)
                                        .usingAnyFreePort()
                                        .build();
                edgeDriverService.start();
                HttpCommandExecutor executor = new HttpCommandExecutor(
                    new HashMap<>(), edgeDriverService.getUrl(), clientFactory);
                WebDriver driver = new RemoteWebDriver(executor, new EdgeOptions());
                

                推荐答案

                HTTP客户端切换到okhttp: http://square.github.io/okhttp/

                The HTTP client was switched to okhttp: http://square.github.io/okhttp/

                这在 Selenium Java CHANGELOG 3.11.0 版本中有所提及,您也可以在源代码中看到它.

                This is mentioned in the Selenium Java CHANGELOG of version 3.11.0 and also you can see it in the source code.

                这篇关于org.openqa.selenium.remote.internal.ApacheHttpClient 在 Selenium 3.14.0 中已弃用 - 应该改用什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Maven JAVA_HOME environment variable is not defined correctly, but it is(Maven JAVA_HOME 环境变量未正确定义,但它是)
                Java System Environment Variable(Java 系统环境变量)
                Java -classpath option(Java -classpath 选项)
                Read environment variable in SpringBoot(在 SpringBoot 中读取环境变量)
                Tomcat 8 - context.xml use Environment Variable in Datasource(Tomcat 8 - context.xml 在数据源中使用环境变量)
                Issue with JAVA_HOME(JAVA_HOME 的问题)
                <tfoot id='1BThX'></tfoot>

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

                        <bdo id='1BThX'></bdo><ul id='1BThX'></ul>

                          <small id='1BThX'></small><noframes id='1BThX'>