final STATE currentState = selectable.getState();
if (attempts >= selectable.getStates().size()) {
throw new JemmyException("State is not reached in " + attempts + " attempts", state);
}
target.mouse().click(clickCount(state));
target.getEnvironment().getWaiter(Wrap.WAIT_STATE_TIMEOUT.getName()).ensureState(new State() {
public Object reached() {
return selectable.getState().equals(currentState) ? null : "";
}