-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hi there,
i use the Version 0.6.1 of the HET-extension with Firefox 68.0.2 and the following Code (with Selenium 3.14.0)
`[create geckoservice]
FirefoxOptions options = new FirefoxOptions();
options.addPreference("devtools.netmonitor.har.enableAutoExportToFile", true);
options.addPreference("devtools.netmonitor.har.defaultLogDir", "C:/");
options.addPreference("devtools.toolbox.selectedTool", "netmonitor");
options.addPreference("devtools.toolbox.footer.height", 250);
options.addPreference("javascript.enabled", true);
options.addArguments("-devtools");
options.addPreference("devtools.netmonitor.har.defaultFileName", "network-log-file-%Y-%m-%d-%H-%M-%S");
options.setProfile(profile); //Profile already has Addon installed
FirefoxDriver driver = new FirefoxDriver(geckoservice, options);
JavascriptExecutor js = driver;
driver.get("about:blank");
driver.get("https://www.google.com");
js.executeAsyncScript("HAR.triggerExport().then(harLog => {\r\n" + " console.log(harLog);\r\n" + "});");
js.executeAsyncScript("HAR.addRequestListener(harEntry => {\r\n"+ " console.log("Request finished", request);\r\n" + "});");
driver.quit();´
If i execute this i get the following Console output:
Aug 16, 2019 3:49:38 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Detected dialect: W3C
console.error: "HAR: request not found server1.conn0.netEvent496"
console.error: "HAR: request not found server1.conn0.netEvent553"
any ideas on how to fix this issue?