RadTreeViewItem

2 posts, 0 answers
  1. Natasha
    Natasha avatar
    21 posts
    Member since:
    Jun 2011

    Posted 15 Nov 2011 Link to this post

    Hi,
    I need help.
    I want record a RadTreeItem selection  but the location of element isn't constant. Can be row 0, 1.....
    I tried to change criteria find element  but I only found next option: XamlTag, TagIndex and Uid.
    Thanks
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 18 Nov 2011 Link to this post

    Hello Natasha,
    this is a common use case.

    You will need to search for the element by using Find Logic that is independent of the DOM structure of the application. Usually the best way is to search by AutomationID.

    The approach will depend on how well the application is adjusted for UI automation. Checkout this article:
    http://blogs.telerik.com/daniellevy/posts/11-03-01/best-practices-element-identification-with-id-and-automationid.aspx

    Best wishes,
    Stoich
    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
Back to Top