This project is read-only.

How can i use regular expression in search properties?

Apr 18, 2013 at 5:18 AM
How can i use regular expression in search properties to find a control ?
Apr 18, 2013 at 6:50 AM
Hi deepakguna,

Using regular expressions to locate controls in Coded UI Test

Also see this discussion:
CUITe uses the tilde character ('~') instead of the equals sign ('=') to indicate the "Contains" search property expression operator.

For example,
public CUITe_HtmlSpan navigationBar { get { return Get<CUITe_HtmlSpan>("id~Headerlinks"); }}

CUITe v1.5 already includes a GetChildren() method that can be used to retrieve a specific child control by its index.

As a work-around, you may also use the UITestControl.FindMatchingControls() method as illustrated in this article:
Feb 14, 2014 at 7:38 PM