Example #1
0
 /**
  * @param locator
  * @param value
  * @return
  */
 public boolean waitForAlertPresent() {
   for (int second = 0; ; second++) {
     if (second >= TestConsts.TIMEOUT) return false;
     try {
       if (selenium.isAlertPresent()) return true;
     } catch (Exception e) {
     }
     sleep(1000);
   }
 }