@RobotKeyword("Selects an item from the tree node's popup menu and does not wait for a result.\n" + "Needed if the action starts a process that stays running (e.g. opens a dialog) and the above keyword doesn't return.\n" + "Separator for items is ``|``.\n\n" + "Example:\n" + "| `Select From Tree Node Popup Menu In Separate Thread` | myTree | Root|Folder | New Folder | ") @ArgumentNames({"identifier", "nodeIdentifier", "menuPath"}) public void selectFromTreeNodePopupMenuInSeparateThread(String identifier, String nodeIdentifier, String menuPath) { JPopupMenuOperator popupOperator = treeOperator(identifier).createPopupOperator(nodeIdentifier); popupOperator.pushMenuNoBlock(menuPath, new EqualsStringComparator()); }
@RobotKeyword("Selects an item from the components context popup menu.\n" + "Does a right click on the component and selects the specified menu item from the popup menu.\n\n" + "Example:\n" + "| `Select From Popup Menu` | myComponent | Actions | Do something |\n") @ArgumentNames({ "identifier", "menuPath" }) public void selectFromPopupMenu(String identifier, String menuPath) { JPopupMenuOperator popup = operator(identifier).invokePopup(); popup.pushMenuNoBlock(menuPath, new EqualsStringComparator()); }
/** * Invoke action on project node from popup menu * @param project * @param pushAction */ public static void actionOnProject(String project, String pushAction) { ProjectRootNode prn; try { prn = ProjectsTabOperator.invoke().getProjectRootNode(project); } catch (TimeoutExpiredException e) { prn = new ProjectsTabOperator().getProjectRootNode(project); } prn.callPopup().pushMenuNoBlock(pushAction); }
/** * Invoke action on project node from popup menu * @param project * @param pushAction */ public static void actionOnProject(String project, String pushAction) { ProjectRootNode prn; try { prn = ProjectsTabOperator.invoke().getProjectRootNode(project); } catch (TimeoutExpiredException e) { prn = new ProjectsTabOperator().getProjectRootNode(project); } prn.callPopup().pushMenuNoBlock(pushAction); }
@RobotKeyword("Invokes a menu action on all the selected tree nodes.\n" + "Does not wait for a result.\n" + "Separator for items is ``|``.\n\n" + "Examples:\n" + "| `Select Tree Node` | myTree | Root|Folder1 |\n" + "| `Select Tree Node` | myTree | Root|Folder2 |\n" + "| `Select From Popup Menu On Selected Tree Nodes` | myTree | Remove | ") @ArgumentNames({"identifier", "menuPath"}) public void selectFromPopupMenuOnSelectedTreeNodes(String identifier, String menuPath) { JPopupMenuOperator popupOperator = treeOperator(identifier).createPopupOperatorOnSelectedNodes(); popupOperator.pushMenuNoBlock(menuPath, new EqualsStringComparator()); SwingWaiter.waitToAvoidInstability(300); }
private static Node performTomcatServerAction(String action) { Node asNode = getTomcatServerNode(); asNode.select(); new EventTool().waitNoEvent(10000); String serverIDEName = asNode.getText(); log("ServerNode name = "+serverIDEName); JPopupMenuOperator popup = asNode.callPopup(); if (popup == null) { throw new Error("Cannot get context menu for Tomcat server node "); } boolean startEnabled = popup.showMenuItem(action).isEnabled(); if(startEnabled) { popup.pushMenuNoBlock(action); } return asNode; }
private static Node performTomcatServerAction(String action) { Node asNode = getTomcatServerNode(); asNode.select(); new EventTool().waitNoEvent(10000); String serverIDEName = asNode.getText(); log("ServerNode name = "+serverIDEName); JPopupMenuOperator popup = asNode.callPopup(); if (popup == null) { throw new Error("Cannot get context menu for Tomcat server node "); } boolean startEnabled = popup.showMenuItem(action).isEnabled(); if(startEnabled) { popup.pushMenuNoBlock(action); } return asNode; }
new JPopupMenuOperator(runtimeTree.callPopupOnPath(path)).pushMenuNoBlock(addServerMenuItem);
} catch (TimeoutExpiredException tee) { new JPopupMenuOperator(runtimeTree.callPopupOnPath(path)).pushMenuNoBlock(addServerMenuItem); NbDialogOperator addServerInstanceDialog = new NbDialogOperator(addServerInstanceDialogTitle); new JListOperator(addServerInstanceDialog, 1).selectItem(glassFishV3ListItem);