add waitForView(String className, final int index, final int timeout,