私はこれが初めてです。UI オートメーションを使用してアプリケーションを自動化しています。複数の識別子に基づいて要素を識別する方法はありますか。現在、以下の構文は、1 つの識別子に基づいてのみ識別できます。
AutomationElement okbtn = dialogbox.FindFirst(TreeScope.Children, new PropertyCondition(AutomationElement.NameProperty, "OK"));
NameProperty と ControlTypeProperty の両方で要素を識別したいと思います。
これは可能ですか?