Added support for getView and waitForView using tag