Can any body please help me to select news description in the attached image file. Text is dynamic and will vary every time. I have id for Title and “Reported by Uma” text. how to select description using title head.
There’s not really enough detail shown to give you specific options for what might be successful. But generally speaking i if the target element is dynamic with no unique attribute you can focus on then you need to look at its parent elements to see if they have a reliable attribute you can use, then find the child of that reliable element. Or use xpath axes if there’s some sibling or other reliable relative element.
Winging these examples since I don’t know what attributes your other elements have.
//android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.TextView
//android.widget.RelativeLayout[@resourceid='com.company:id/top_story]/android.widget.LinearLayout/android.widget.TextView