@Test public void marathon_select_none() throws Throwable { TreeView<?> treeViewNode = (TreeView<?>) getPrimaryStage().getScene().getRoot().lookup(".tree-view"); Platform.runLater(() -> treeView.marathon_select("[\"/Root node/Child Node 2\"]")); new Wait("Waiting for the text item to be selected.") { @Override public boolean until() { return 2 == treeViewNode.getSelectionModel().getSelectedIndex(); } }; Platform.runLater(() -> treeView.marathon_select("[]")); new Wait("Waiting for no items selected.") { @Override public boolean until() { return 0 == treeViewNode.getSelectionModel().getSelectedIndices().size(); } }; }
@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; }