Removed sleep 3 and add a extra expect to avoid the Element not found problem.