UI Automation on Rad Controls

6 posts, 0 answers
  1. Omri
    Omri avatar
    3 posts
    Member since:
    Mar 2012

    Posted 02 Apr 2012 Link to this post

    Hi,

    I am testing an application containing all kinds of telerik rad controls (ComboBox, DataGridView, TreeView, ect')
    unfortunately, NON of them are recongnized by Visual Studio Coded UI Builder!

    All I know is that my AUT uses Telerik Rad Controls for ASP.Net - 2010.3.

    Please Help!!

    Thank you,
    Omri
  2. James Campbell
    James Campbell avatar
    90 posts
    Member since:
    Jul 2012

    Posted 03 Apr 2012 Link to this post

    Omri,

    At this time I am unaware of any extensions for Rad Controls in Visual Studio Coded UI builder. You could do something like this to get the native HTML element:

    http://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/c38306bd-b45f-4ae2-bbf2-b81ff427f8ba

    Elsewise, you may want to look into Telerik test studio, which is much more robust than Visual Studio :

    http://www.telerik.com/automated-testing-tools/products/test-studio-vs-visual-studio-2010-comparison.aspx

    Thank you,
    James Campbell

    If this helped answer your question, please mark as answered, thank you.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Omri
    Omri avatar
    3 posts
    Member since:
    Mar 2012

    Posted 03 Apr 2012 Link to this post

    Hi James,

    Thank you for your reply.

    I was able to get the Native Element of the Rad Control through  IHTMLElement2 (as described here: http://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/c38306bd-b45f-4ae2-bbf2-b81ff427f8ba )
    But I wasn't able to figure out how to access it's methods or properties.

    I was able to activate javascript functions to manipulate the control, and execute it from Coded UI Test, for example:

    RunScript(
     "var obj = window.$find('" + id + "');obj.showDropDown(); 
      obj.findItemByText('" + item + "').select();
                      obj.hideDropDown(); ");
     
    How can I get all the javascript functions that can be executed on a RadControl? (RadComboBox in this example)


  5. James Campbell
    James Campbell avatar
    90 posts
    Member since:
    Jul 2012

    Posted 03 Apr 2012 Link to this post

    Omri,

    Take a look at this:

    http://social.msdn.microsoft.com/Forums/en/vsautotest/thread/9c221437-a934-49da-a98e-76707407d0db

      Hope it helps.

      Thank you,
      James Campbell

      If this helped answer your question, please mark this post as answered, thank you.

    • Omri
      Omri avatar
      3 posts
      Member since:
      Mar 2012

      Posted 05 Apr 2012 Link to this post

      Hi James,

      Eventually I was able to get Telerik Test Framework and run all of the javascript client-side methods from there.
      at this point, it's a good enough solution for me.

      Thank you!
      Omri
    • Sahil
      Sahil avatar
      3 posts
      Member since:
      Dec 2012

      Posted 17 Dec 2012 Link to this post

      Hi, Can you guys please tell me how automate the silverlight application using webaii..

      Thanks
    Back to Top
    UI for ASP.NET Ajax is Ready for VS 2017