public class PerfTestt {
public static void main(String[] args) throws Exception {
ProxyServer server = new ProxyServer(8080);
server.start();
Proxy proxy = server.seleniumProxy();
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.PROXY, proxy);
WebDriver driver = new FirefoxDriver(capabilities);
server.newHar("yahoo.com");
driver.get("http:/yahoo.com");
Har har = server.getHar();
FileOutputStream fos = new FileOutputStream("C:\\Users\\nergiz\\output.txt");
har.writeTo(fos);
server.stop();
driver.quit();
}
}
ドライバー情報: driver.version: org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118) の FirefoxDriver org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:251) org で.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:110) org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:195) org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java: 190) org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:107) com.beam.testo.selenium.PerfTestt.main(PerfTestt.java:32) で 原因: org.openqa.selenium.firefox. NotConnectedException: 45000 ミリ秒後にポート 7055 でホスト 127.0.0.1 に接続できません。