xSpeed - The horizontal speed in pixels/secondySpeed - The vertical speed in pixels/secondTouchActions swipe = new TouchActions(wd).flick(-200, 0); TouchActions swipe = new TouchActions(wd).flick(200, 0);
How I should code in Flick function?
and if need to swipe by two finger touch point, how I can code in Java?
Thanks.
public void swipeToLeft() {
TouchActions flick = new TouchActions(driver).flick(page, -100, 0, 0);
flick.perform();
}
I usually swipe on a webelement though - don't really remember why