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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -