Hi
I am working on Automating Android native app using java client.
The native app has a page with ListView which contains more 200 elements with textView objects arranged in alphabetical order and when I try scrolling with it scrolls until alphabet ‘E’ and then the app goes to the background and the @Test ends.
HashMap<String, String> scrollObject = new HashMap<String, String>();
RemoteWebElement element = (RemoteWebElement)driver.findElementById(fullListContainer);
JavascriptExecutor js = (JavascriptExecutor) driver;
String widId = ((RemoteWebElement) element).getId();
//Text for search on the screen
scrollObject.put("text", tvProvidername);
scrollObject.put("element", widId);
js.executeScript("mobile: scrollTo", scrollObject);