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

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -