Exemple #1
0
        public HtmlPassword GetHtmlPassword(string searchParameters)
        {
            var pwd = new HtmlPassword(searchParameters);
            var tmp = new CUITControls.HtmlEdit(this);

            tmp.FilterProperties[CUITControls.HtmlControl.PropertyNames.Type] = "PASSWORD";
            pwd.Wrap(tmp);
            return(pwd);
        }
Exemple #2
0
        public void HtmlEdit_Wrap_Succeeds()
        {
            GoogleHomePage pgGHomePage = BrowserWindowUnderTest.Launch<GoogleHomePage>("http://www.google.com");

            CUITControls.HtmlEdit tmp = new CUITControls.HtmlEdit(pgGHomePage);
            tmp.SearchProperties.Add("Id", "lst-ib");

            HtmlEdit txtEdit = new HtmlEdit();
            txtEdit.WrapReady(tmp);
            txtEdit.SetText("Coded UI Test enhanced Framework");
            GoogleSearch pgSearch = BrowserWindowUnderTest.GetBrowserWindow<GoogleSearch>();
            pgSearch.Close();
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HtmlPassword"/> class.
 /// </summary>
 /// <param name="sourceControl">The source control.</param>
 /// <param name="searchConfiguration">The search configuration.</param>
 public HtmlPassword(CUITControls.HtmlEdit sourceControl, By searchConfiguration = null)
     : base(sourceControl, searchConfiguration)
 {
     AddSearchProperty(CUITControls.HtmlControl.PropertyNames.Type, "PASSWORD");
 }