I have an object tree that has row objects inside the table parent. I am trying to put all these lines in an AutomationElementCollection
AutomationElementCollection asdf = ParentTableObj.FindAll ( TreeScope.Children, new PropertyCondition ( AutomationElement.NameProperty, "I want to use regex here" ) );
All lines of ' AutomationElement.NameProperty contain the string "row". However, they are variants of this line - for example, "Row1", "Row2", "TopRow", ...
It seems that I can miss something, since the FindAll method allows you to define a TreeScope and find any AutomationElement that matches the provided Condition parameter. I just want my condition to be unlimited, since I can already control the TreeScope search TreeScope .
source share