add delay to waitForElement