boolean isProcessAlert() {
    if (asyncScriptExecutor != null) {
      String text = alert.getText();
      alert.dismiss();
      asyncScriptExecutor.alertTriggered(text);
      return false;
    }
    conditionLock.lock();
    mainCondition.signal();
    conditionLock.unlock();
    return true;
  }
boolean isProcessAlert ( ) { if ( asyncScriptExecutor != null ) { String text = alert . getText ( ) ; alert . dismiss ( ) ; asyncScriptExecutor . alertTriggered ( text ) ; return false ; } conditionLock . lock ( ) ; mainCondition . signal ( ) ; conditionLock . unlock ( ) ; return true ; }
@return to process or not to proceed