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

What is java code for connecting to proxy using remotewebdriver in selenium [closed]

$
0
0

I have the code for c#

       HttpCommandExecutor executor = new HttpCommandExecutor(new Uri("HubURL"), TimeSpan.FromSeconds(120), false)
        {
            Proxy = new WebProxy(new Uri("http://proxy:port"))
        };
        IWebDriver driver = new RemoteWebDriver(executor, options.ToCapabilities());

What is equivalent code of this in java for setting proxy to remotewebdriver


Viewing all articles
Browse latest Browse all 99018

Trending Articles



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