It appears that "while" command is not working in the selenium tests. Moving the pause 2min before the while loop to verify.