@Test public void select() { ProgressBar progressBarNode = (ProgressBar) getPrimaryStage().getScene().getRoot().lookup(".progress-bar"); Platform.runLater(() -> { progressBar.marathon_select("0.20"); }); new Wait("Wating for progress bar progress to be set.") { @Override public boolean until() { return progressBarNode.getProgress() == 0.2; } }; }
@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; }