Hi, Priyank_Shah!
Your exaples are correct!
But:
-
this way you can’t instantiate MobileElement or RemoteWebElement for example.
-
you can’t use TouchActions and MultiTouchActions because you will catch ClassCastExeption
-
you can’t use some new annotations implemented for Screen Objects. Read this tread.