Web driver IO's browser console function: getLogs not working when message contains Json Object

269 Views Asked by At

I am trying to use WDIO's getLogs('browser') to capture debug info from a JS application. The debug info is in JSON format. In manual testing, i can see all the data in JSON from console. But when i utomated it in WDIO. The message returned from getLogs for that entry doesn't contain the JSON data, it only shows it as Object. The message is like 'JSapplication.js line 123 Object', so it is useless. Does anyone know how to get the data in JSON? By the way the JS application is from a third party, not editable.

I was able to grab the message, but it is not what I wanted

0

There are 0 best solutions below