Unable to get Kendo grid object with testing framework

3 posts, 0 answers
  1. Wenwen
    Wenwen avatar
    3 posts
    Member since:
    Dec 2012

    Posted 15 Jul 2013 Link to this post

    Hey, telerik

    Our web UI  includes quite a few of Kendo UI widgets, such as grid, calendar. So we are currently using telerik testing framework to automate UI testing in C# with NUnit. 

    However, I got null grid object with the following line of code

     KendoGrid grid = myManager.ActiveBrowser.Find.ById<KendoGrid>("grid");

    And in web :


    Could you let me know where I did wrong?

    Thanks,
  2. Wenwen
    Wenwen avatar
    3 posts
    Member since:
    Dec 2012

    Posted 16 Jul 2013 Link to this post

    I guess "myManager.ActiveBrowser.RefreshDomTree();" would make it work.

    BTW, where I can find more sample codes about Kendo UI widget automation, such as grid? 

    Thanks,

  3. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 17 Jul 2013 Link to this post

    Hi Wenwen,

    I am glad to hear you have resolved the issue.

    Refreshing the DOM tree is a common action which helps the DOM to load properly.

    Unfortunately we don't have code samples about Kendo, however if you have issues with it do not hesitate to contact us.

    Thank you for your understanding. 

    Regards,
    Boyan Boev
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top