I have to read the text from the androidElement but not able to do so by using the get attribute function.
Because there is no value present for the attribute Text, but for the content-desc its there. So i am trying to get the text by using
String text=driver.findelementByxpath(xpath).getattribute(“content-desc”);
Note:-This is the sample Syntax