我想在我的 UIMap.cs(不是 UIMap.Designer.cs)中添加一个手写的编码控件。
例如,当我录制:时writing in a texBox,我在 UIMap.Designer.cs 中得到以下代码:
public class Recorded_Writing_In_forRecordParams
{
    public string UIForRecordEditText = "forRecord";
}
public class UIMainWindowWindow : WpfWindow
{
    public UIMainWindowWindow()
    {
        this.SearchProperties[WpfWindow.PropertyNames.Name] = "MainWindow";
        this.SearchProperties.Add(new PropertyExpression(WpfWindow.PropertyNames.ClassName, "HwndWrapper", PropertyExpressionOperator.Contains));
        this.WindowTitles.Add("MainWindow");
    }
    public WpfEdit UIForRecordEdit
    {
        get
        {
            if ((this.mUIForRecordEdit == null))
            {
                this.mUIForRecordEdit = new WpfEdit(this);
                this.mUIForRecordEdit.SearchProperties[WpfEdit.PropertyNames.AutomationId] = "forRecord";
                this.mUIForRecordEdit.WindowTitles.Add("MainWindow");
            }
            return this.mUIForRecordEdit;
        }
    }
    private WpfEdit mUIForRecordEdit;
}
我想在我的CodedUITest. 有没有办法TextBox在UIMap.cs自己的编码中搜索或在我的中搜索TestMethod?哪个是最好的方法?