I have a log which logs using formatting.
console.log('%c%s - %s', 'color:blue; font-weight:bold;', msg.type, msg.message);
I need to get these logs using selinium.
Using
LogEntries logEntries = driver.manage().logs().get(LogType.BROWSER);
for (LogEntry entry : logEntries) {
System.out.println(entry.getLevel() + " " + entry.getMessage());
}
prints
INFO xyz/abc/LogService.js 45:14 %c%s - %s
instead of printing the value of the object.
How do I get the value of %s
or %c
formats in the logs.