Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/TestStack.White/UIItems/TreeItems/TreeNodes.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Windows.Automation;
using TestStack.White.AutomationElementSearch;
using TestStack.White.Factory;
Expand Down Expand Up @@ -32,7 +33,7 @@ public virtual TreeNode GetItem(params string[] path)

private TreeNode MatchingNode(string nodeText)
{
return Find(treeNode => treeNode.Text.Equals(nodeText));
return Find(treeNode => Regex.IsMatch(treeNode.AutomationElement.Current.Name, nodeText, RegexOptions.IgnoreCase));
}

/// <summary>
Expand Down