Hi Sarah,
can you please share the code with me here
try {
AndroidElement list = (AndroidElement) mDriver
.findElement(By.id("**dk.dsg.and.store.controllers:id/menu_list"**)); // this is basically the ID of the list or the page as you highlight in the picture you need to paste the ID here in "************"
MobileElement listGroup = list
.findElement(MobileBy.AndroidUIAutomator("new UiScrollable(new UiSelector()).scrollIntoView("
+ "new UiSelector().text(\"Kampagne info\"));"));
assertNotNull(listGroup.getLocation()); // for assert you need to add jar file for testng or Junit as per your project
listGroup.click();// for listGroup you need to add jar for list group
Result = mDriver.findElement(By.id("dk.dsg.and.store.controllers:id/textView")).getText(); // for mDriver is my variable you need to user driver only instead of mDriver. and Result is String type variable you can intsert String before Result like String Result;
System.out.println(Result);
} catch (Exception e) {
e.printStackTrace();
}
comments are added on each error if you have still facing the issue kindly contact me Thanks