How to reference Rad controls

4 posts, 0 answers
  1. Simon
    Simon avatar
    1 posts
    Member since:
    Jun 2010

    Posted 21 Nov 2013 Link to this post

    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?  

  2. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 27 Nov 2013 Link to this post

    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
  3. KidSysco
    KidSysco avatar
    10 posts
    Member since:
    Aug 2013

    Posted 17 Nov 2015 Link to this post

    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.

  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 20 Nov 2015 Link to this post

    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
     
Back to Top