@Test public void getTextForMultiple() throws Throwable { TreeView<?> treeViewNode = (TreeView<?>) getPrimaryStage().getScene().getRoot().lookup(".tree-view"); List<String> text = new ArrayList<>(); Platform.runLater(() -> { treeViewNode.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE); treeView.marathon_select("[\"/Root node/Child Node 1\",\"/Root node/Child Node 3/Child Node 7\"]"); text.add(treeView.getAttribute("text")); }); new Wait("Waiting tree view text.") { @Override public boolean until() { return text.size() > 0; } }; AssertJUnit.assertEquals("[\"/Root node/Child Node 1\",\"/Root node/Child Node 3/Child Node 7\"]", text.get(0)); }
@Override public boolean marathon_select(String value) { return setSelectionPath(value); }
JavaFXTreeViewElement extends JavaFXElement { @Override public boolean marathon_select(String value) { return setSelectionPath(value); } }
JavaFXTreeViewElement extends JavaFXElement { @Override public boolean marathon_select(String value) { return setSelectionPath(value); } JavaFXTreeViewElement(Node component, IJavaFXAgent driver, JFXWindow window); }
JavaFXTreeViewElement extends JavaFXElement { @Override public boolean marathon_select(String value) { return setSelectionPath(value); } JavaFXTreeViewElement(Node component, IJavaFXAgent driver, JFXWindow window); @Override List<IJavaFXElement> getByPseudoElement(String selector, Object[] params); @Override boolean marathon_select(String value); @Override String _getText(); }
JavaFXTreeViewElement extends JavaFXElement { @Override public boolean marathon_select(String value) { return setSelectionPath(value); } JavaFXTreeViewElement(Node component, IJavaFXAgent driver, JFXWindow window); @Override List<IJavaFXElement> getByPseudoElement(String selector, Object[] params); @Override boolean marathon_select(String value); @Override String _getText(); static final Logger LOGGER; }