@Test public void getText() { List<String> value = new ArrayList<>(); Platform.runLater(() -> { progressBar.marathon_select("0.20"); value.add(progressBar.getAttribute("text")); }); new Wait("Wating for progress bar value") { @Override public boolean until() { return value.size() > 0; } }; AssertJUnit.assertEquals("0.2", value.get(0)); }
@Override public boolean marathon_select(String value) { ProgressBar progressBar = (ProgressBar) getComponent(); progressBar.setProgress(Double.parseDouble(value)); return true; }
JavaFXProgressBarElement extends JavaFXElement { @Override public boolean marathon_select(String value) { ProgressBar progressBar = (ProgressBar) getComponent(); progressBar.setProgress(Double.parseDouble(value)); return true; } }
JavaFXProgressBarElement extends JavaFXElement { @Override public boolean marathon_select(String value) { ProgressBar progressBar = (ProgressBar) getComponent(); progressBar.setProgress(Double.parseDouble(value)); return true; } JavaFXProgressBarElement(Node component, IJavaFXAgent driver, JFXWindow window); }
JavaFXProgressBarElement extends JavaFXElement { @Override public boolean marathon_select(String value) { ProgressBar progressBar = (ProgressBar) getComponent(); progressBar.setProgress(Double.parseDouble(value)); return true; } JavaFXProgressBarElement(Node component, IJavaFXAgent driver, JFXWindow window); @Override boolean marathon_select(String value); @Override String _getText(); }
JavaFXProgressBarElement extends JavaFXElement { @Override public boolean marathon_select(String value) { ProgressBar progressBar = (ProgressBar) getComponent(); progressBar.setProgress(Double.parseDouble(value)); return true; } JavaFXProgressBarElement(Node component, IJavaFXAgent driver, JFXWindow window); @Override boolean marathon_select(String value); @Override String _getText(); static final Logger LOGGER; }