How to send input events with Chrome DevTools Remote Debug Protocol

451 views
Skip to first unread message

Harold Campbell

unread,
Jun 18, 2017, 2:03:09 AM6/18/17
to Google Chrome Developer Tools
Hi, 

I'm trying to send use Input.dispatchKeyEvent and Input.dispatchMouseEvent events to send an event to a specific DOM.Node. 

Unfortunately, I can't figure out how to target the node.

In going through the different domains (listed here: https://chromedevtools.github.io/devtools-protocol/1-2/) I don't see a direct link between a DOM.NodeId and either of the events.

Has anyone used these? can you point me to an example where you went from DOM.querySelector all the way to setting a value and then clicking on the node with Input. dispatchMouseEvent.

Thanks in advance,

h
Reply all
Reply to author
Forward
0 new messages