returns the object as JSON, so you don't need to call methods to obtain property values.
page.on("console",(details)=>{console.warn(details.toJson());}); Copy
page.on("console",(details)=>{console.warn(details.toJson());});
returns the object as JSON, so you don't need to call methods to obtain property values.