Replace time.sleep with implicitly_wait