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

RadDropDownTree

3 Answers 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
LQKerry
Top achievements
Rank 1
LQKerry asked on 06 Sep 2013, 02:48 PM
Hello, I am trying to write some automated scripts (just using Visual Studio and the Testing Framework, no Test Studio) to interact with a RadDropDownTree. I have been trying to do some research of how to work with it, but I have not found any information. Just by writing code I have found that there is a RadDropDownTree wrapper class in the Telerik.WebAii.Controls.Html namespace, but I have not been able to find any documentation on this class.

Is the API documentation (http://www.telerik.com/automated-testing-tools/support/documentation/online-api-reference/index.html) just not up to date? Does anyone have a link to any detailed information on the RadDropDownTree wrapper class? Any information would be greatly appreciated. Thanks!

3 Answers, 1 is accepted

Sort by
0
Velin Koychev
Telerik team
answered on 11 Sep 2013, 10:54 AM
Hi Kerry,

We are always trying to keep our documentation up to date, but it you are right that in this case it is missing information about RadDropDownTree class in our API documentation. However, you can still use the Visual Studio's IntelliSense to retrieve the same information about the class methods, members, etc.

If you are having specific issues working with the RadDropDownTree, you can share with us more information and we can try to help you.   

Looking forward to hearing from you.

Regards,
Velin Koychev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
LQKerry
Top achievements
Rank 1
answered on 11 Sep 2013, 02:20 PM
Velin,

Thanks for the response. Using Visual Studio IntelliSense is pretty much what I have been doing to work with the wrapper class.

A quick example or two of how to work with the RadDropDownTree on a page would be greatly appreciated. I have it working, but I am not sure it is the smartest/easiest way. What I need to accomplish is to:

1. Open the Tree Drop Down
2. Find and select an appropriate tree item (need to be able to intelligently navigate the tree structure to select an item as some of the sub-items from different branches will have the same text)
3. Find and select multiple tree items

Thanks!

Kerry
0
Accepted
Velin Koychev
Telerik team
answered on 16 Sep 2013, 01:54 PM
Hello Kerry,

Here is one code sample against this demo website that you can use for a guidance how to open the drop down and select a specific tree item:
// Launch an instance of the browser
            Manager.LaunchNewBrowser();
            ActiveBrowser.NavigateTo("http://demos.telerik.com/aspnet-ajax/dropdowntree/examples/overview/defaultcs.asp" + "x", true);
            Telerik.WebAii.Controls.Html.RadDropDownTree dropDown = Find.ByExpression<Telerik.WebAii.Controls.Html.RadDropDownTree>("id=ctl00_ContentPlaceHolder1_RadDropDownTree1", "tagname=div");
            dropDown.ShowDropDown();
            Telerik.WebAii.Controls.Html.RadTreeView treeView = Find.ByExpression<Telerik.WebAii.Controls.Html.RadTreeView>("id=ctl00_ContentPlaceHolder1_RadDropDownTree1_EmbeddedTree", "tagname=div");
            treeView.ExpandNodeByText("World Continents");
 
            //get all of the tree items and print them in the log file
            List<Telerik.WebAii.Controls.Html.RadTreeNode> allNodes = treeView.AllNodes.ToList<Telerik.WebAii.Controls.Html.RadTreeNode>();
            foreach (Telerik.WebAii.Controls.Html.RadTreeNode node in allNodes)
            {
                Log.WriteLine(node.Text.ToString());
            }
             
            treeView.SelectNodeByText("Africa");
            treeView.SelectNodeByText("Asia");

If the code sample does not help you, I will need some more information in order to help you:
Please provide us with a copy of your test and if it is possible grant us access to your application so we can reproduce the issue on our end and give you a solution.
If direct access is not possible, capture a Fiddler trace and attach it to this support ticket in a zip file. If you are unfamiliar with how to do so, this link will provide you with step-by-step instructions for download and use. Please make sure to enable 'Decrypt HTTPS traffic' and 'Store binaries' options (see attached image) before starting capture.

Looking forward to hearing from you.

Regards,
Velin Koychev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
LQKerry
Top achievements
Rank 1
Answers by
Velin Koychev
Telerik team
LQKerry
Top achievements
Rank 1
Share this question
or