Browsermob Sample Program
//Import dependency classes from Selenium standlone jar file import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.remote.CapabilityType; import org.openqa.selenium.remote.DesiredCapabilities; //Import dependency classes from BrowserMob-Proxy jar file import org.browsermob.proxy.ProxyServer; import org.browsermob.core.har.Har; import org.openqa.selenium.By; import org.openqa.selenium.Proxy; import java.io.FileOutputStream; public class SampleClass { public static void main(String[] args) throws Exception { String strFilePath = "< Define Your Local System Path here >"; // start the proxy ProxyServer server = new ProxyServer(4444); server.start(); //captures the moouse movements and navigations server.setCaptureHeaders(true); server.setCaptureContent(true); // get the Selenium proxy object Proxy proxy = server.seleniumProxy(); /