Forked from sayems/Capture Network Traffic and Http Requests From WebDriver
Last active
August 29, 2015 14:16
-
-
Save sasajib/8f9ec0272736f785c54e 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