Bug 867600 - Change hardcoded sleeps into webdriver waits, r=davehunt