#StackBounty: #javascript #puppeteer #trace How to trace and collect all used dependent JavaScript for a particular field

Bounty: 200

I would like to gather all events and JavaScript code with dependencies for a particular form field/all form field including frameworks. I have tried with puppeteer and CDP to get the events for a field and subsequently gather JavaScript. I was able to get events details successfully. Not sure how to walk all traces from the event to collect used JavaScript code. Quick help appreciated.

Following code has been used to collect events.

listener = await windowHandle._client.send('DOMDebugger.getEventListeners', {
objectId: submitElementHandle._remoteObject.objectId

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.