Trigger a click event on a node

say i have at some point :

var node = .....

How can a trigger programmatically click event on this node ?

Ok find that sample here : http://gojs.net/latest/extensions/Robot.html

This should be okay.