I have list of elements of specific type, I want to swipe one of this element right or left, How i can do this using appium ?
I know i can use driver.Swipe(); to swipe in appium but how to use to swipe specific element ?
My list of elements is
var contacts = driver.FindElements(By.ClassName("android.widget.ImageView")); contacts[7].Click();
How i can swipe element contacts[7]
to right or left?
you can get element.getLocation().getX() and element.getLocation().getY … or even get the center with element.getCenter().getX()/getY() and use those as input to swipe.
1 Like