ChrisG
April 20, 2018, 1:54pm
1
I’m using a very basic scroll method on an iOS native app (using the emulator). My code looks as follows:
TouchAction swipe = new TouchAction(driver).press(30, 600)
.waitAction(Duration.ofSeconds(3))
.moveTo(30, moveDown)
.release();
swipe.perform();
The issue I’m experiencing is that it deosn’t scroll to the same place each time. The first time it will scroll to a certain point, but then when I run the exact same test again, it scrolls to a different position.
Has anyone else experienced this?
Refer to below thread if it helps you
If somebody looking for solution for Swipe, Scroll for native apps on Android and iOS this is how I achieved
Android
Based on co-ordinates technique
new TouchAction(driver).press(115, 650).waitAction(ofSeconds(1)).moveTo(115, 350).release().perform();
Not sure if it’s possible to do with particular element ?
iOS
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> swipeObject = new HashMap<String, String>();
Method 1
swipeObject.put("element", mobileEleme…