0

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);
  • Duplicated question answered here: https://stackoverflow.com/questions/45288842/how-to-set-proxy-for-chrome-browser-in-selenium-using-java-code – cattox Oct 15 '22 at 14:04

0 Answers0