java - How to get browser logs using selinium -
i have log logs using formatting.
console.log('%c%s - %s', 'color:blue; font-weight:bold;', msg.type, msg.message);
i need these logs using selinium.
using
logentries logentries = driver.manage().logs().get(logtype.browser); (logentry entry : logentries) { system.out.println(entry.getlevel() + " " + entry.getmessage()); }
prints
info xyz/abc/logservice.js 45:14 %c%s - %s
instead of printing value of object.
how value of %s
or %c
formats in logs.
Comments
Post a Comment