How can you redirect browsing from a browser through some proxy using Selenium?
Create an object of the proxy class and set the HTTP or FTP proxy as needed. These are the techniques that the proxy can use. To modify the browser’s capability, use the DesiredCapability class and pass the proxy object. When starting the browser, pass the capability object.