Last active
December 20, 2015 22:49
-
-
Save sayems/6207945 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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