How to find a child view control under RelativeLayout control

Hi ,

I have a RelativeLayout control which I can find by content-desc , I was wondering , how do I can to access it’s child control in order to get it’s text (the child control doesn’t have an accessibility label to access.


found a solution

MobileElement element = MobileElementsOperations.getElementByContentDesc(driver , "right_rate_text_view");
MobileElement element1 = (MobileElement) element.findElement(By.className("android.view.View"));
String str = element1.getAttribute("name");
1 Like