public void selectVariableInOpenTab(String variableNameEndsWith) { JSpinnerNameEndsWithMatcher matcher = new JSpinnerNameEndsWithMatcher(variableNameEndsWith); // Focusing the spinner seems to do the trick, though this seems hackish and brittle. JSpinnerFixture spinner = focusedWindow.spinner(matcher); spinner.focus(); }