static void mouseClickAfterMove(Rect r) { if (r == null) fail("Nothing to click on"); moveMouseTo(r); mouseClick(); }