Hi,
I tried below code to scroll element to up but it is not working. Please help me on this.
Here “element” variable refers to my target element and it is identifiable and return by driver.findElement.
HashMap<String, String> scrollObject = new HashMap<String, String>();
scrollObject.put("element", ((RemoteWebElement)element).getId());
scrollObject.put("direction", "up");
driver.executeScript("mobile: scroll",scrollObject);
Along with the above code I tried below ways as well.
- driver.executeScript(“mobile: scrollTo”,scrollObject);
- new IOSTouchAction(driver).press(element).moveTo(anotherElement).release().perform();
Below is my Environment:
Framework: XCUITest
Xcode: 8.3.3
Appium : v1.7.2-beta2
iPad iOS version: 10.3.3
io.appium.java-client api version: 5.0.4
Thanks,
Ramesh Sriram
created
Dec '17
last reply
Dec '17
- 3
replies
- 597
views
- 3
users
- 5
links