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

How to reference Rad controls

3 Answers 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 21 Nov 2013, 03:02 PM
Hi,

Simple and probably silly question but how do I actually reference Telerik conrols using the test framework?

I have created a test project and test class and it loads a lot of namespaces, but none of them seem to give the ability to automate the selection of Rad controls such as RadGrid and RadComboBox.

I thought the point of using the Telerik tools was that it would enable me to do something like:

ActiveBrowser.Find.ById<RadComboBox>("myComboBox").Select("Value1")

Is this not the case?   Do I have to try and figure out the raw IDs from the html?  If so, what about for ajax?  And if so, what's the point in this being a Telerik product?  

3 Answers, 1 is accepted

Sort by
0
Velin Koychev
Telerik team
answered on 27 Nov 2013, 08:29 AM
Hello Simon,

Yes, you should be able to do something similar to this. You just need to add reference (and using statement) to Telerik.WebAii.Controls.Html.dll that you can find in the following folder: C:\Program Files (x86)\Telerik\Test Studio\Bin\Translators
You should be able to use the following code:
ActiveBrowser.Find.ById<RadComboBox>("myComboBox").SelectItemByText("Value1");

You can use the translators from this folder to further improve your testing automation.

I hope this helps. 

Regards,
Velin Koychev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
KidSysco
Top achievements
Rank 1
answered on 17 Nov 2015, 07:08 PM

It is very frustrating to have to dig for weeks to find this kind of stuff that should so clearly be provided in documentation and examples.

 

The Teleri Testing Framework is a nice piece of work, it deserves better documentation.

0
Ivaylo
Telerik team
answered on 20 Nov 2015, 12:51 PM
Hello Ryan,

I am glad you've found the solution you're looking for. Unfortunately we cannot document each scenario that a customer can face, furthermore we have API which you can browse and find what you are looking for.

Thank you for the feedback provided.

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