Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7420

Node doesn't have location when using Robot

$
0
0

@sarank9210 wrote:

@walter

Hi Walter,

I’ve two questions to be clarified?

  1. What does a GraphObject represent - Diagram? Node?

  2. 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

Read full topic


Viewing all articles
Browse latest Browse all 7420

Trending Articles