IZ
Size: a a a
IZ
M
V
M
public void swipeUp(int timeOfSwipeMs) {
TouchAction action = new TouchAction((PerformsTouchActions) getWebDriver());
Dimension size = getWebDriver().manage().window().getSize();
int x = size.width / 2;
int start_y = (int) (size.height * 0.8);
int end_y = (int) (size.height * 0.2);
action
.press(point(x, start_y))
.waitAction(WaitOptions.waitOptions(Duration.of(timeOfSwipeMs, MILLIS)))
.moveTo(point(x, end_y))
.release()
.perform();
}
public void swipeUpQuick() {
swipeUp(2000);
}
M
M
M
public void swipeUp(int timeOfSwipeMs) {
TouchAction action = new TouchAction((PerformsTouchActions) getWebDriver());
Dimension size = getWebDriver().manage().window().getSize();
int x = size.width / 2;
int start_y = (int) (size.height * 0.8);
int end_y = (int) (size.height * 0.2);
action
.press(point(x, start_y))
.waitAction(WaitOptions.waitOptions(Duration.of(timeOfSwipeMs, MILLIS)))
.moveTo(point(x, end_y))
.release()
.perform();
}
public void swipeUpQuick() {
swipeUp(2000);
}
M
IZ
M
M
V
M
M
M
M
M
V
public void swipeUp(int timeOfSwipeMs) {
TouchAction action = new TouchAction((PerformsTouchActions) getWebDriver());
Dimension size = getWebDriver().manage().window().getSize();
int x = size.width / 2;
int start_y = (int) (size.height * 0.8);
int end_y = (int) (size.height * 0.2);
action
.press(point(x, start_y))
.waitAction(WaitOptions.waitOptions(Duration.of(timeOfSwipeMs, MILLIS)))
.moveTo(point(x, end_y))
.release()
.perform();
}
public void swipeUpQuick() {
swipeUp(2000);
}
M