Thank you @Danp2, You gave me exactly the error that experiencing. I have not  navigate before adding cookie.   The problem of _WD_WaitElement(): I determined exactly the element which need waiting but it does not seem to work.