I am trying to change my proxy in Selenium WebDriver using Java but I tried a lot of code but nothing has changed can please someone help me to solve this problem.
This is the code that I used to change my proxy:
Proxy proxy = new Proxy();
proxy.setAutodetect(false);
proxy.setHttpProxy("192.252.216.81:4145");
proxy.setSslProxy("192.252.216.81:4145");
ChromeOptions options = new ChromeOptions();
options.setCapability("proxy", proxy);
DriverHandler.driver = new ChromeDriver(options);