used loop for test box clicks instead of pasted clicks