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

Selecting the nth index on a RadComboBox

3 Answers 123 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 10 Nov 2010, 03:02 PM
I would like to be able to select the 'nth' item of a RadComboBox using WebUI Test Studio.

The senario

Enter some match text into the combo box, wait for the ajax call back to complete and the dropdown list to open.
Select the 'nth' eg second item.

I am able to use a Find Expression (XPath) to target the 'nth' item but I'm not sure how this helps as the RadComboBoxItem action to select an item only seems to select the item that matches its ItemText value.

Is there away to do this?

Maybe bind from the Find Expression to the RadComboBox input?
Maybe store the text value of the Find Expression in a variable and then update the RadComboBox input?

Thanks

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 10 Nov 2010, 04:07 PM
Hi Peter,

Before we can assist, we need to know are you dealing with the Silverlight version of the RadComboBox or the ASP.NET version? The way to do this is slightly different between the two.

Best wishes,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Peter
Top achievements
Rank 1
answered on 10 Nov 2010, 04:53 PM
The ASP.NET version.
I am using the WebUI_TestStudio_QA_2010_3_1109 install


EDIT:
I notice there is an option for ByIndex selection in the Q3 version.
However this only seems to work if i include a Pause Before on the Action?

Thanks
0
Helen
Telerik team
answered on 11 Nov 2010, 02:03 PM
Hello Peter,

Yes, there is a select by index option in the new Q3 version.
Did you try to include a Wait command for specific item count (wait for all items to be loaded) before the item selection?

Regards,
Helen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Cody
Telerik team
Peter
Top achievements
Rank 1
Helen
Telerik team
Share this question
or