public boolean waitForEditable(String locator) { for (int second = 0; ; second++) { if (second >= TestConsts.TIMEOUT) return false; try { if (selenium.isEditable(locator)) return true; } catch (Exception e) { } sleep(1000); } }