Iam writing automation test case, I want find each element in a tree by unique I’d,How to inspect an element on canvas element when right click is disabled…is there any plugin or tool using which we can locate element on canvas
First, don’t depend on any Canvas element.
Second, if you have the Div element that is hosting the diagram, you can call the static function Diagram.fromDiv to get the Diagram object. Then you can use the whole GoJS API to do your testing. Diagram | GoJS API. You will need to learn about GoJS in order to be able to test your app. For efficiency reasons the things that you see in a diagram are not DOM elements.
For example you can probably find the Node that you want by calling Diagram | GoJS API
You might want to read these topics: