@sarank9210 wrote:
Hi Walter,
I’ve two questions to be clarified?
What does a GraphObject represent - Diagram? Node?
When I’m using the following function to programmatically click a node, I’m not getting correct location for node:
function clickLambda() {
var lambda = myDiagram.findNodeForKey(“Lambda”); // I’m able to get the node
if (lambda === null) return;
var loc = lambda.location;robot.mouseDown(loc.x + 10, loc.y + 10, 0, { }); robot.mouseUp(loc.x + 10, loc.y + 10, 100, { });
}
when I debug this console, I get loc = {x: NaN, y: NaN} bcz of which my click event is failing.
Could you pls suggest or correct if I’m doing something wrong?
Thanks,
Saravana
Posts: 2
Participants: 2