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
});
from How to trace and collect all used dependent JavaScript for a particular field
No comments:
Post a Comment