update waitForSelectElement