[[ Bug 13590 ]] Make sure we wait until the user clicks on alert window. Now working.