Hi Jim,
So I am using selenium 2.25.1 now and IEDriver is launching with default port and I am able to set InternetExplorerDriverService object along with DesiredCapabilities object as follows:
InternetExplorerDriverService.Builder ies = new InternetExplorerDriverService.Builder();
ies.usingDriverExecutable("D:\\IEDriverServer.exe").usingAnyFreePort().withLogFile(new File("somefile.log")).withLogLevel(InternetExplorerDriverLogLevel.DEBUG);
InternetExplorerDriverService service = ies.build();
So I am using HAR to capture the network traffic with ProxyServer and IE.
import org.browsermob.core.har.Har;
import org.browsermob.proxy.ProxyServer;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerDriverLogLevel;
import org.openqa.selenium.ie.InternetExplorerDriverService;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
ProxyServer server = new ProxyServer(4413);
server.start();
Proxy proxy = server.seleniumProxy();
server.newHar("Test Web");
server.setCaptureHeaders(true);
server.setCaptureContent(true);
Har har = server.getHar();
har.writeTo(new File("D:\\test.har"));
System.out.println("BROWSER NAME: "+har.getLog().getBrowser().getName());
But I am getting Null Pointer exception for har object since it is not able to store any values stored in server.
Can you please tell me how to get the IEDriver work along with HAR?
Is that browsermob proxy server start and IEDriver start are not getting binded on Capabilities object?
Cc'ing browser mob proxy group - Hope Patrick or someone from Browser mob proxy group also can shed some light here !
Regards,
Siva