テーブルの親内に行オブジェクトを持つオブジェクトツリーがあります。これらすべての行をに入れようとしていますAutomationElementCollection
AutomationElementCollection asdf = ParentTableObj.FindAll
(
TreeScope.Children,
new PropertyCondition
(
AutomationElement.NameProperty,
"I want to use regex here"
)
);
すべての行AutomationElement.NameProperty
には、文字列「row」が含まれています。ただし、これらはその文字列のバリエーションです。たとえば、「Row1」、「Row2」、「TopRow」、...
このメソッドでは、提供されたパラメーターに一致するFindAll
を定義しTreeScope
て検索できるため、何かが足りないようです。で検索スコープを制御できるので、条件を制限しないようにしたいだけです。AutomationElement
Condition
TreeScope