313314315316317318319320321322323
while (it.hasNext() && !found) { SimpleButton btn = it.next(); if (btn.getLocation().equals(location)) { logger.debug("testPressButton(), found button to test"); found = true; btn.pressButton(); } } } }