Hi there,
I am using Samsung galaxy S3 android 4.4.4 version.
I am trying to swipe an element in an app and used the following code:
MobileElement abc= (MobileElement) driver.findElement(By.className("android.widget.CheckedTextView"));
abc.swipe(SwipeElementDirection.UP, 60);
I get the error “Not yet Implemented”. Neither swipe UP nor swipe DOWN is working. I am using appium version 1.4.0 and Java client- 3.0.0 version.
Please help how to get this done.
Thanks,
Uma
Have you tried using the TouchAction class directly to simulate a swipe?
It seems you are in windows, because in windows I had that too when using swipe, but was able to do swipe with the class above. In MAC I have no similar problems.
RamS
July 15, 2015, 5:19am
3
In below post I have explained Swipe functionality for screen.
hi,
I’m using appium for android and ios automation test. Sometimes i need click the relative point on the screen for the situation no elements can be located. So I need know the size of the device under test to adapt different devices.
i searched the methods in the class AppiumDriver but no related method found,
But this will not cover swipe within an element.
Hi Cardoso,
Thanks for the reply. Yes I am using windows. Do you have any sample code with TouchAction so that I will give a try.