void addWaitStatement(){
  if (isRecording()) {
    long t=System.currentTimeMillis();
    long d=t - waitTimer;
    generatedCode+="        waitFor(" + d + ");\n";
    waitTimer=t;
  }
}

void addWaitStatement ( ) { if ( isRecording ( ) ) { long t = System . currentTimeMillis ( ) ; long d = t - waitTimer ; generatedCode += "        waitFor(" + d + ");\n" ; waitTimer = t ; } }
adds a wait to simulate user delay
