How to implement Selenium test cases for canvas

No, the above code for simulating input events assumes there is only one Diagram. We can investigate extending that functionality to cover dragging between diagrams.