Open GoogleCodeExporter opened 9 years ago
Issue is reproducible
Code:-
System.setProperty("webdriver.chrome.driver", "/pathto/chromedriver2.15");
System.setProperty("webdriver.chrome.logfile", "pathto/logs.log");
LoggingPreferences logs = new LoggingPreferences();
logs.enable(LogType.BROWSER, Level.ALL);
logs.enable(LogType.DRIVER, Level.ALL);
DesiredCapabilities caps = DesiredCapabilities.firefox();
caps.setCapability(CapabilityType.LOGGING_PREFS, logs);
ChromeDriver driver = new ChromeDriver(caps);
driver.get("file:///pathToHtml/Issue1098.html");
for (LogEntry e : driver.manage().logs().get(LogType.BROWSER)) {
System.out.println(e.getMessage());
}
Thread.sleep(10000);
driver.executeScript("1+1");
System.out.println("logs after 10secs");
for (LogEntry e : driver.manage().logs().get(LogType.BROWSER)) {
System.out.println(e.getMessage());
}
If we do not call "driver.executeScript("1+1") , no log is fetched in the
response
From the logs:-
[0.659][INFO]: COMMAND GetLog {
"type": "browser"
}
[0.659][INFO]: RESPONSE GetLog [ {
"level": "SEVERE",
"message": "file:///pathToHtml/Issue1098.html 9:17 InitialError",
"source": "console-api",
"timestamp": 1431732155781.0
} ]
[5.663][INFO]: COMMAND GetLog {
"type": "browser"
}
[5.663][INFO]: RESPONSE GetLog [ ] ==>No log fetched
Marking the bug as unTriaged
Original comment by gmanikp...@chromium.org
on 19 May 2015 at 6:55
Original comment by gmanikp...@chromium.org
on 26 May 2015 at 11:42
Original issue reported on code.google.com by
goderba...@google.com
on 15 May 2015 at 6:14