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

Getting Error when try to select key from diagram using Selenium

$
0
0

@rahul wrote:

I am trying to select key from diagram using Javascript and Selenium webdriver but getting error :

unknown error: Cannot read property 'findNodeForKey' of undefined

My Code :

if (Base.getdriver() instanceof JavascriptExecutor) {
	  String code = "var key = myTmGo.Diagram.model.nodeDataArray[1]"; 
	  ((JavascriptExecutor) Base.getdriver()).executeScript("var node = myTmGo.Diagram.findNodeForKey(key);"+
	  "myTmGo.Diagram.select(node);");
	  ((JavascriptExecutor) Base.getdriver()).executeScript(code);

	  }

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7424