@Override protected void initialize() { log(":: initialize"); // new CloseAllDocumentsAction().performAPI(); processNode = new EPUtilities().getProcessFilesNode("SOATestProject"); Node doc1 = new Node(processNode, "batch.xsd"); doc1.select(); JComboBoxOperator combo = new JComboBoxOperator(new TopComponentOperator("Navigator")); // NOI18N combo.selectItem("Schema View"); // NOI18N }
/** * Selects combobox item. Uses StringComparator assigned to this object. * * @param item Item text. * @throws TimeoutExpiredException */ public void selectItem(String item) { selectItem(item, getComparator()); }
/** * Selects combobox item. * * @param item Item text. * @param ce Compare exactly. * @param cc Compare case sensitivelly. * @see ComponentOperator#isCaptionEqual(String, String, boolean, boolean) * @throws TimeoutExpiredException * @deprecated Use selectItem(String) or selectItem(String, StringComparator) */ @Deprecated public void selectItem(String item, boolean ce, boolean cc) { selectItem(item, new DefaultStringComparator(ce, cc)); }
/** * Selects an item by text. * * @param item a text pattern. * @param comparator a searching criteria. */ public void selectItem(String item, StringComparator comparator) { output.printLine("Select \"" + item + "\" item in combobox\n : " + toStringSource()); output.printGolden("Select \"" + item + "\" item in combobox"); selectItem(waitItem(item, comparator)); }