To simulate mouse events the buttons below use the Robot class that is defined in Robot.js.

Click these buttons in order from top to bottom:

Clicking operations:

Panning operation:

The UndoManager has been enabled in the main Diagram. Give focus to the Diagram and you can undo everything and then redo everything to confirm what was executed by the Robot.