Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sasajib/8f9ec0272736f785c54e to your computer and use it in GitHub Desktop.
Save sasajib/8f9ec0272736f785c54e to your computer and use it in GitHub Desktop.
package com.company;
http://eveningsamurai.wordpress.com/2013/06/29/capturing-network-traffic-using-selenium-webdriverfirebug/
Proxy proxy = new Proxy();
// The URL here is the URL that the browsermob proxy is using
proxy.setHttpProxy("localhost:9100");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(CapabilityType.PROXY, proxy);
WebDriver driver = new FirefoxDriver(capabilities);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment