driver.findElement(By.id(“co.nworks.leaveapp:id/txt_select_project”)).click();
MobileElement listGroup =(MobileElement) driver.findElements
(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector()"
+ ".className(\"android.widget.CheckedTextView\")).scrollIntoView("
+ "new UiSelector().text(\"Miscellaneous\"));"));
assertNotNull(listGroup.getLocation());
listGroup.click();
i want to select the last element .but it is throwing class casr exception cannot convert arraylist to mobile element