Hi Team,
Are getEventListeners (e.g. click) supported for headless ? If yes, please provide some pointers how it can be used.
DOMDebugger.getEventListeners should work. Documentation is in the protocol viewer [1], and we've pointed you to various examples of how to send DevTools commands before. Should be a piece of cake for you now :)
If you're looking for example code, you might have more luck taking your question to
stackoverflow.com.
Also, is it possible to make is available to JS running on the page for plugins.
You can use JS to gather the information you require [2]. Other than that, you could try running the DevTools command in your client and provide the relevant information back to the page e.g. via Runtime.evaluate. Your best option is using JS inside the page directly though as in [2].