java - How to get content-desc in Android app using appium -


i writing automation test android app.

when trying content-desc article title. not able fetch it.

fyi don't have text.

list<webelement> arrayofproperties2 = driver.findelementsbyclassname("android.view.view");  (webelement property : arrayofproperties2){     system.out.println("property" + property.getclass());      string contentdesc = property.getattribute("name");     string contentdesc1 = property.getattribute("classname");     string contentdesc2 = property.getattribute("resourceid");     system.out.println("contentdesc" + contentdesc);     system.out.println("contentdesc1" + contentdesc1);     system.out.println("contentdesc2" + contentdesc2); } 

result:-

contentdesc contentdesc1android.view.view contentdesc2 

enter image description here


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -