Problem with ArtOfTest.WebAii.Silverlight.UI.ComboBox

4 posts, 0 answers
  1. Prachi
    Prachi avatar
    8 posts
    Member since:
    Dec 2010

    Posted 29 May 2011 Link to this post

    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

     

  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 30 May 2011 Link to this post

    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 >>

  3. Prachi
    Prachi avatar
    8 posts
    Member since:
    Dec 2010

    Posted 30 May 2011 Link to this post

    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
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 31 May 2011 Link to this post

    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 >>

Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!