Automation.UI.Tree.Query.FirstResult C# (CSharp) Méthode

FirstResult() public méthode

Get the first result of executing this query. If no elements were found, throws an exception.
public FirstResult ( ) : UIComponent
Résultat UIComponent
        public UIComponent FirstResult()
        {
            var result = Engine.GetFirstResult(this);
            if (result == null)
                throw new ElementNotFoundException("No elements matched the specified query");

            return new UIComponent(result);
        }

Same methods

Query::FirstResult ( System.TimeSpan timeout ) : UIComponent