Thanks… dimension size (540, 888)
following co-ordinates i have put still it does not work
public void swipeRightToLeft() {
getDriver().manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);
Dimension size = getDriver().manage().window().getSize();
System.out.println(size);
int startx = (int) (size.width *0.40);
int endx = (int) (size.width *0.20);
int starty = size.height / 2;
int finalendx = startx-endx;
int endy = 0;
TouchAction actions = new TouchAction(getDriver());
actions.press(point(270,444)).waitAction(waitOptions(Duration.ofMillis(2000))).moveTo(point(-finalendx,endy)).release().perform();