Reputation:
I have a JTree that has two same-named nodes. I am writing an RFT script that needs to click the second-named node but it will only click the first entry it finds. enter image description here By utilising ITestDataTree, I have managed to retrieve the ITestDataTreeNode I need but can't figure out how to click it. Is there any way to convert an ITestDataTreeNode object into a GuiTestObject?
Thanks in advance, Steven.
Upvotes: 0
Views: 37
Reputation:
Finally found a solution.
simple as:
List list = new List();
list.append(new Index(0)); // root
list.append(new Index(0)); // suite
list.append(new Index(0)); // scenario
list.append(new Index(0)); // testcase
list.append(new Index(1)); // action
jTree().click(list); // expands second action node
Upvotes: 0