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