You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, and No. There isn't a built in option for webshot, but it is a feature of phantomJS so you can get ot it with minimal effort. I've done it a few times now.
You need to open up the webshot.phantom.js, and modify the code to add a listener to the page object for the onConsoleMessage event from phatomjs. Simply adding a console.log to that handler should do. Note, that only the msg argument is currently used, you will always get undefined for the others (line number and source id).
Hello,
Is there a way to get back the content of the messages logged to the console by the frontend-level javascript run by webshot?
I would like to debug javascript code run by webshot.
Thanks
The text was updated successfully, but these errors were encountered: