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

Problem with ArtOfTest.WebAii.Silverlight.UI.ComboBox

3 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Prachi
Top achievements
Rank 1
Prachi asked on 29 May 2011, 11:07 AM
I have a combobox (ArtOfTest.WebAii.Silverlight.UI.ComboBox) with many ComboBoxItems in it. So, i want to scroll the vertical scroll bar to the specific ComboBox Item.
I am not able to find a way to do this.
So, I want to scroll the combobox and select/click on the specific ComboBoxItem. And the number of elements in this ComboBox can vary.
Can you please provide some way to do this?

Thanks,
Prachi

 

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 30 May 2011, 01:04 PM
Hello Prachi,
   you can try to work around this by using "blind" mouse clicks to move the scroll-bar. Here's how to record "blind" mouse clicks:
http://www.telerik.com/automated-testing-tools/support/kb/invoking-blind-i-e-element-independant-mouse-clicks.aspx
  Just record a few mouse clicks right on the scroll bar - it will move it (see attached screenshot).
 
Greetings,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Prachi
Top achievements
Rank 1
answered on 30 May 2011, 01:46 PM
Hello Stoich,
We can scroll down the scroll bar that way but I want to scroll down till the specific element is visible.
The combobox have a list of projects and the list may change dynamically.

e.g.
Combo box contains list of 10 projects.
"aa"
"bb"
"CC"
"DD"
"EE"
"FF"
"GG"
"HH"
"II"
"JJ"

Only 3 of them are visible in a comobox and i have to scroll down to view remaining projects.
Now, i want to select "EE".
So i want to scroll combobox so that "EE" is visible.
Further, as combobox contains list of projects so suppose "d1", "d2", "d3"  projects are added so combobox will now contain 13 elements in it and the position of "EE" will shift down (As projects are sorted in alphabetical order).

So, how to do that type of scroll and selection?

Thanks,
Prachi
0
Stoich
Telerik team
answered on 31 May 2011, 01:49 PM
Hi Prachi,
     there's a solution for that. In order to easily explain how it works I've created a video in which I demonstrate the solution on this Load-On-Demand combobox:
http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx

Here's the video:
http://screencast.com/t/ZYh7LdZWS0g

And the actual Test which you can check out is also attached.
You should be able to apply the same solution to your combobox.

Regards,
Stoich
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Prachi
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Prachi
Top achievements
Rank 1
Share this question
or