They're potentially due to some concurrent access to the system clipboard. So this patch makes them sequential.
waitForTimeout
waitForSelector
waitForFunction
getRect
waitForEvent