IList<AppiumWebElement> els = AppiumDriver.FindElementsByClassName("android.widget.LinearLayout");
var loc1 = els[12].Location;
var target = els[1];
var loc2 = target.Location;
var touchAction = new TouchAction(AppiumDriver);
touchAction.Press(loc1.X, loc1.Y).Wait(800).MoveTo(loc2.X, loc2.Y).Release().Perform();
//Assert.AreNotEqual(loc2.Y, target.Location.Y);
In mobile automation testing, I can swipe and click to element in the list. But I have to loop this.
The list consists of 30 items. It is iterated after every 10 elements.
How can I do this?