I am trying to swipe down contact screen but its not working.
Here is the code I have tried.
public void Swipedown() throws InterruptedException
{
// Select till which position you want to move the seekbar
TouchAction action=new TouchAction((PerformsTouchActions) driver);
Dimension dimensions = driver.manage().window().getSize();
action.press(446,1404).moveTo(554,1500).release().perform();
System.out.println("swipe down to set seekbar successfully");
Thread.sleep(5000);
}
Can you guys help me what I am doing wrong here.
Any help will be highly appreciated.
Use below method for swiping down/up:
Call above method by:
For scroll up:
swipeVertical((AppiumDriver)driver,0.9,0.1,0.5,3000);
For scroll down:
swipeVertical((AppiumDriver)driver,0.1,0.9,0.5,3000);
Use this code to swipe up and down
Hope this helps :)