private void pause(String delayInMillis) {
   try {
     Thread.sleep(Long.parseLong(delayInMillis));
   } catch (Exception e) {
     LOG.warn("Pause command interrupted", e);
   }
 }
 /**
  * Set delay between steps.
  *
  * <p><code>
  * | set step delay to | 500 |
  * | set step delay to | slow |
  * | set step delay to | fast |
  * </code>
  *
  * @param stepDelay delay in milliseconds
  */
 public void setStepDelayTo(String stepDelay) {
   if ("slow".equals(stepDelay)) {
     this.stepDelay = 1000;
   } else if ("fast".equals(stepDelay)) {
     this.stepDelay = 0;
   } else {
     this.stepDelay = Long.parseLong(stepDelay);
   }
 }