Skip to content

documentation use deprecated method for firefox #130

@andreabisello

Description

@andreabisello

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions