Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

DoubleClick on a node in a OrgChart diagram

$
0
0

@anand-sathiyaseelan wrote:

Hi,

This is my code in my selenium script.

String NodeName="Managers";
	     Object count = (Object) ((JavascriptExecutor) driver).executeScript("var ct=dgmOrganizationUnit.nodes.count; return ct");
		((JavascriptExecutor) driver).executeScript("for(let i = 0; i < +"+count+"; i++) {var key= dgmOrganizationUnit.model.nodeDataArray[i].key;var node = dgmOrganizationUnit.findNodeForKey(key); var ntxt= node.text; if(ntxt==='"+NodeName+"'){dgmOrganizationUnit.select(node);}}");

I am able to select the node in my OrgChart using “.select(x)”. But i would like to do a doubleClick on the selected node named “Managers” and get into a new scenario. Please help.

Regards,
Anand S

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles