This is a migrated thread and some comments may be shown as answers.

[Solved] Support for AutoCompleteTextBox

1 Answer 20 Views
Silverlight WebAii RadControls
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mukul Bhatt
Top achievements
Rank 1
Mukul Bhatt asked on 10 Feb 2010, 05:02 PM
Do WebUI supports AutoCompleteTextBox?
can I use AutoCompleteTextBox in Find.ByType<>()?

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 10 Feb 2010, 05:58 PM
Hello Mukul Bhatt,

So assuming it's the basic Ajax AutoCompleteTextBox, there isn't a wrapper class for this control. You would need to find the control as it is displayed on in the Dom. I got this working based on this Auto Complete Example:

[TestMethod]
     public void SampleWebAiiTest()
     {
         Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
         //Find Input Box
         HtmlInputText t = ActiveBrowser.Find.ByExpression<HtmlInputText>("name=ctl00$SampleContent$myTextBox");
         t.MouseClick();
         Desktop.KeyBoard.TypeText("Test String", 500);
         //Wait For AutoComplete to appear, then Refresh Dom
         System.Threading.Thread.Sleep(3000);
         ActiveBrowser.RefreshDomTree();
         //Get list of suggestions and click item 4
         HtmlUnorderedList l = ActiveBrowser.Find.ByExpression<HtmlUnorderedList>("id=AutoCompleteEx_completionListElem");
         Assert.IsNotNull(l);
         l.Items[3].MouseClick();
     }


Hope that helps,
Nelson Sin
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Silverlight WebAii RadControls
Asked by
Mukul Bhatt
Top achievements
Rank 1
Answers by
Missing User
Share this question
or