I have an object tree that has row objects within a table parent. I'm attempting to put all these rows into an AutomationElementCollection
AutomationElementCollection asdf = ParentTableObj.FindAll
(
TreeScope.Children,
new PropertyCondition
(
AutomationElement.NameProperty,
"I want to use regex here"
)
);
All of the rows' AutomationElement.NameProperty
contains the string "row". However, they are variations of that string - e.g. "Row1", "Row2", "TopRow", ...
It seems like I may be missing something since the FindAll
method allows you to define the TreeScope
and find any AutomationElement
, which matches the provided Condition
parameter. I just want my condition to be unrestricted since I can already control the find scope by TreeScope
.