I am new to automation and using Katalon. I am currently trying to automate swipe gesture. The object contains 4 slides. I tried the code below but both swipes from Left side to Right side:
int startX = (int)(Mobile.getDeviceWidth()*0.70) //start point is on the ride side of the screen
int endX = (int)(Mobile.getDeviceWidth()*0.30) //end point is on the left side of the screen
int startY = Mobile.getDeviceHeight()/2 //Middle of the screen
Mobile.swipe(startX,startY,endX,startY) //supposedly Right to Left
Mobile.swipe(endX,startY,startX,startY) //Left to Right
Is there other approach in order to automate swipe from left to right?