This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
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();
im getting the following exception
org.openqa.selenium.interactions.InvalidCoordinatesException: The coordinates provided to an interactions operation are invalid. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
can anyone help me out please
1 month later