Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

WPF: Finding text box element before the password field

$
0
0
Code:

conditions = new AndCondition(
                                new PropertyCondition(AutomationElement.ControlTypeProperty,
                                                controlType),
                                new PropertyCondition(AutomationElement.IsPasswordProperty, isPassword));

elementWindow.FindFirst(TreeScope.Descendants, conditions);

Hello, so I am able to find the password property based on the IsPasswordProperty. How do I find the textbox field right before the password text box? My goal is to find any text box right before password text box is found. How do I step 1 child element down from a found child element?

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>