@Test public void getText() { List<String> text = new ArrayList<>(); Platform.runLater(() -> { listView.marathon_select("[\"Row 2\"]"); text.add(listView.getAttribute("text")); }); new Wait("Waiting for list item text") { @Override public boolean until() { return text.size() > 0; } }; AssertJUnit.assertEquals("[\"Row 2\"]", text.get(0)); }
@Override public boolean marathon_select(String value) { return setItemSelection(value); }
JavaFXListViewElement extends JavaFXElement { @Override public boolean marathon_select(String value) { return setItemSelection(value); } }
JavaFXListViewElement extends JavaFXElement { @Override public boolean marathon_select(String value) { return setItemSelection(value); } JavaFXListViewElement(Node component, IJavaFXAgent driver, JFXWindow window); }
JavaFXListViewElement extends JavaFXElement { @Override public boolean marathon_select(String value) { return setItemSelection(value); } JavaFXListViewElement(Node component, IJavaFXAgent driver, JFXWindow window); @Override List<IJavaFXElement> getByPseudoElement(String selector, Object[] params); @Override boolean marathon_select(String value); @Override String _getText(); }
JavaFXListViewElement extends JavaFXElement { @Override public boolean marathon_select(String value) { return setItemSelection(value); } JavaFXListViewElement(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; }