Hi,
atom wrote:The Ranorex.Tree class has a method : TreeItem(string Label)
If you mean the Tree indexer, then the indexer internally just calls the
Adapter.FindDescendant method. The "defaultlabel" of a TreeItem is its text and the method does not take regular expressions.
Alternatively, to get a specific set of TreeItems from your tree using regular expressions you can use RanoreXPath with the
Find method of Ranorex.Tree.
For more details about using RanoreXPath have a look at following links:
http://www.ranorex.com/support/user-gui ... xpath.htmlhttp://www.ranorex.com/blog/ranorexpath-tips-and-tricksWith the Find method, in your case, you will get a list of TreeItems which you can go through and prepare for your XDocument.
For more details about using XDocument have a look at following link:
http://msdn.microsoft.com/en-us/library ... ument.aspxKind regards,
Tobias
Support Team