Am automating one of the client requirement and there am facing a problem like during the authentication process always displays the captcha to choose an image for verification. But I don't know how to avoid asking captcha and had an idea like if we authenticate via Proxy we can restrict captcha. So I have used below code to hook up the Proxy in Selenium but that's also not working, Still, the authentication asks captcha. So please anyone help me with this. Thanks in advance.
String PROXY = "xxxxxxxx:xxxx";
org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
proxy.setHttpProxy(PROXY)
.setFtpProxy(PROXY)
.setSslProxy(PROXY);
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(CapabilityType.PROXY, proxy);
driver = new ChromeDriver(cap);