webmetrics / browsermob-proxy

NOTICE: this project has been forked and is being maintained at https://github.com/lightbody/browsermob-proxy
https://github.com/lightbody/browsermob-proxy
Apache License 2.0
234 stars 773 forks source link

documentation use deprecated method for firefox #130

Open andreabisello opened 5 years ago

andreabisello commented 5 years ago

here https://github.com/lightbody/browsermob-proxy#using-with-selenium the documentation are using this code, but this code looks deprecated

 // 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)