A new guy to mobile automation here.. I am trying the below code using Touch Action to perform the swipe action to navigate to page 2, but swipe is not functioning.
AndroidDriver driver=new AndroidDriver<>(url,cap);
TouchAction ta=new TouchAction(driver);
ta.press(565,372).moveTo(-381,-6).release().perform();
everything else works fine. As the swipe is not functioning, I get the same content retrieved for both pages. Please correct me what is wrong?