// configure it as a desired capability
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.PROXY, seleniumProxy);
// start the browser up
WebDriver driver = new FirefoxDriver(capabilities);
i thinks it can be changed with this code
FirefoxOptions foption = new FirefoxOptions()
foption.setProxy(seleniumProxy)
WebDriver driver = new FirefoxDriver(foption)
here https://github.com/lightbody/browsermob-proxy#using-with-selenium the documentation are using this code, but this code looks deprecated
i thinks it can be changed with this code