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

Ajax Control Toolkit Combobox

1 Answer 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 03 Oct 2012, 11:45 PM
Hey guys

I'm trying to figure out how to use a combobox from the ajax control toolkit in test studio. 

In some cases I can't seem to select the proper item, and in others when I submit a combobox with a selected item the default value (prior to my test running) is submitted.

Any suggestions would be appreciated!
Thanks
Jon

1 Answer, 1 is accepted

Sort by
0
Mario
Telerik team
answered on 09 Oct 2012, 05:05 PM
Hello Jon,

Thank you for your question.

In those cases where you are getting unpredictable behavior with your combobox selection I would suggest adding a hover event and delay prior to the selection. This can be accomplished by adding a 'Mouse Action' from your Elements Explorer and 'Execution Delay' step or by altering the code below to point to the appropriate ListItem and replacing your Click step altogether.

Pages.ComboBoxSample.ListItem.ScrollToVisible();
Pages.ComboBoxSample.ListItem.MouseHover();
System.Threading.Thread.Sleep(500);
Pages.ComboBoxSample.ListItem.MouseClick();

Let me know if this solution helps.

If you continue to have trouble with the combobox selections I would be able to provide a more detailed solution if you were to attach a copy of your test to this ticket. Additionally, a Jing video demonstrating the issue may also help me to better understand what is happening.

Regards,
Mario Rip
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Mario
Telerik team
Share this question
or