I have to select elements with a condition.
element which is having class value as "android.widget.RelativeLayout" and resource id should be blank. Only these elements should be counted
Actual Problem
I have multiple elements with class as "android.widget.RelativeLayout" i want only few among them. When i observed i have a blank id for desired elements.
When i write below code. It is selecting all the elements:
List e = d.findElementsByClassName("android.widget.RelativeLayout");
System.out.println("size of list is " + e.size());
Suggest your inputs techies.... please