We've added a RadAutoCompleteBox to a control which handles email addresses and suggests those which have already been used. I need to click in the box, and begin typing a few characters of a name, then verify the autocomplete suggested values are displaying what I want, and either continue typing or select a value. The trouble I'm having is that once I get the automation to stop entering text, the control assumes that I'm done adding the value so it completes the entry and doesn't show me the suggested values. This prevents me from accessing the items in the RadListBox/autocomplete results.
I've tried different flavors of this so far without any luck (using Test Studio 2014.1.410):
//Attempt 1
<RadAutoCompleteBox>.TypeText("Test");
<RadListBox>.Items[0].User.Click();
//At this point "Test" is typed into the box, but then focus is lost so the autocomplete box doesn't display, it just assumes "Test" is all that was needed to be entered and I get an error attempting to click the RadListBox
//Attempt 2
<RadAutoCompleteBox>.User.Click("Test");
SendKeys.SendWait("Test");
<RadListBox>.Items[0].User.Click();
//Same result as above, focus is lost after entering "Test" so the autocomplete box never opens and I get an error attempting to click the RadListBox
//Attempt 3
//Recorded Step: Click in the RadAutoCompleteBox
//Recorded Step: Type "Test" into the box
//Recorded Step: Select the first entry in the RadListBox
//These steps will click in the box, enter the text, but once again not recognize the RadListBox autocomplete results
Any other suggestions as to how I can approach this?
Thanks,
Nick
I've tried different flavors of this so far without any luck (using Test Studio 2014.1.410):
//Attempt 1
<RadAutoCompleteBox>.TypeText("Test");
<RadListBox>.Items[0].User.Click();
//At this point "Test" is typed into the box, but then focus is lost so the autocomplete box doesn't display, it just assumes "Test" is all that was needed to be entered and I get an error attempting to click the RadListBox
//Attempt 2
<RadAutoCompleteBox>.User.Click("Test");
SendKeys.SendWait("Test");
<RadListBox>.Items[0].User.Click();
//Same result as above, focus is lost after entering "Test" so the autocomplete box never opens and I get an error attempting to click the RadListBox
//Attempt 3
//Recorded Step: Click in the RadAutoCompleteBox
//Recorded Step: Type "Test" into the box
//Recorded Step: Select the first entry in the RadListBox
//These steps will click in the box, enter the text, but once again not recognize the RadListBox autocomplete results
Any other suggestions as to how I can approach this?
Thanks,
Nick