Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation use deprecated method for firefox #130

Open
andreabisello opened this issue Jan 18, 2019 · 0 comments
Open

documentation use deprecated method for firefox #130

andreabisello opened this issue Jan 18, 2019 · 0 comments

Comments

@andreabisello
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant