Changed tabs to spaces
Added WaitForElement which uses the selenium DefaultWait