I need to get the count of items in a tree list. In particular tree view has folders and subfolders and then contents. Number of Childs is absent in Object Spy Propeties.
Each of the items in the tree view is getting recognized as Web element. Also there are many other webelements in that particular page. So I need to get the count of webelement listed in tree view alone
So common properties that I could found across this webelement in tree view are : class= "Webelement",html tag ="H", Height = "15".
So I have written Descriptive Programming to get webelemts in above page with above properties and it returned me a value of <font color="red">16</font> . This returned value includes two sets :
Set 1: Items in tree view
Set 2: Items other than tree view
Now I need to deduce items other than tree view. So the difference I have found in Set 2 is that it's outertext is empty.
So I have written below code to get Set1 values alone. Here I have tried to get the RO Property (Outertext)of object which is having empty values and reduce count (count items) by one