When I use the method for swipe with new implementation I am getting an error like below , I am not sure if I am doing anything fundamentally wrong.
Application : IMDB Android Native Application
Object : com.imdb.mobile:id/search
-
Code Snippet
MobileElement element = (MobileElement)Driver.findElementById("com.imdb.mobile:id/search"); element.swipe(SwipeElementDirection.LEFT, 1000);
-
Error Message
org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.MobileElement