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

Test automation and the RadTreeView

2 Answers 73 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 09 Jan 2013, 10:28 PM
We are trying to establish some test automation around the rad tree view and need a way to identify tree nodes client side. We would like to use the RadTreeNode.Value property to do this. We are setting this value server side.
eg     

RadTreeNode treeNode = new RadTreeNode();

treeNode.Value = itemID;  //eg 3636

But in the resulting html we can't find the itemID.

<li class="rtLI" _item="[object Object]" _itemTypeName="Telerik.Web.UI.RadTreeNode">
    <div class="rtTop" jQuery1357770307520="7">
    <span class="rtSp"/>
    <input class="rtChk" type="checkbox" value="on"/>
    <span class="rtIn EEMCheckBoxNode" jQuery1357770307520="8">
        Text - Air Heat Flow (BTU 59)

Any help would be appreciated.

Dave

2 Answers, 1 is accepted

Sort by
0
Accepted
Kate
Telerik team
answered on 25 Jan 2013, 12:58 PM
Hi Dave,

Please take a look at the following forum post where the issue that you get is described in details - RadMenu and Telerik TestStudio. Although the issue is related to the RadMenu control, the same approach could be applied to the RadTreeView as well. Try using it and let me know if this helps in your scenario.

Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Dave
Top achievements
Rank 1
answered on 04 Feb 2013, 03:46 PM
Yes that will work. Thanks Kate.
Tags
TreeView
Asked by
Dave
Top achievements
Rank 1
Answers by
Kate
Telerik team
Dave
Top achievements
Rank 1
Share this question
or