Hi Everyone,
I have less experience in Appium.
I want to perform below mentioned action in my screen of emulator
1. Scroll down a little to get one button
2. Swipe left to find other button.
I have tried Touch Action Command, but they are not scrolling the `screen also its not getting failed. My scripts just gets end there, without performing any action.`
Commands I have tried:
1. action.press(427, 878).waitAction().moveTo(427,
554).release().perform();
2. action.press(427, 878).moveTo(427, 554).release().perform();
-
Dimension size = wd.manage().window().getSize();
int startx = size.getWidth() / 2;
int starty = (int) (size.getHeight() * 0.8);
int endy = (int) (size.getHeight() * 0.2);
TouchAction action = new TouchAction(driver);
action.press(startx,starty).waitAction().moveTo(startx,endy).release(
).perform();
My System config is:
- Mac OS 10.13
- Android Emulator 6 and 7
- Gson 2.8.2
- Appium 1.7.2
- Standalone 3.9.1
- javaclinet 6.0.0 Beta3