I’m using the “mobile: scroll” with javascriptexecutor as a contingency, but I have problems with “scroll” duration, it’s a list of several elements on an iPhone device, please support them.
WebElement we = aDriver.findElement(By.xpath("//XCUIElementTypeApplication/XCUIElementTypeWindow[4]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypePicker/XCUIElementTypePickerWheel"));
JavascriptExecutor js = (JavascriptExecutor) aDriver;
HashMap<String, String> so = new HashMap<String, String>();
so.put(“direction”, “down”);
so.put(“element”, ((RemoteWebElement) we).getId());
js.executeScript(“mobile: scroll”, so);
When I make this “script”, the “scroll” goes to the end.
Thanks