waitForElement testing