Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99018

What is the alternative for ApacheHttpClient class in selenium

$
0
0

I have code as below

RemoteWebDriver driver = new RemoteWebDriver(new HttpCommandExecutor(new HashMap<String, CommandInfo>(),
                new URL(URL), new Factory() {
                    private HttpClientBuilder builder;
                    {
                        builder = HttpClientBuilder.create();
                        HttpHost proxy = new HttpHost(proxy,proxyport);
                        System.out.println(proxy);
                        builder.setProxy(proxy);                        
                        System.out.println(builder);

                    }

                    @Override
                    public HttpClient createClient(URL url) {
                        return new ApacheHttpClient(builder.build(), url);
                    }                       

but as the ApacheHttpClient class has been deprecated what is the alternative for ApacheHttpClient class to use in the above code


Viewing all articles
Browse latest Browse all 99018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>