Coded UI + RadCartesianChart

4 posts, 0 answers
  1. Peter
    Peter avatar
    17 posts
    Member since:
    Mar 2017

    Posted 31 Mar 2017 Link to this post

    Hi, 
    I would like to ask how can I find RadCartesianChart on Visual Studio 2015 + Coded UI Test. 

    http://www.telerik.com/teststudio/visual-studio-testing-plugin-benefits - This is same example for Grid. 

    I try his but I can't have that option Find.ById

    RadCartesianChart radCartesianChart = Find.

    Regards,

    Peter

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    938 posts

    Posted 05 Apr 2017 Link to this post

    Hello,

    Thank you for your interest in Telerik Test Studio. 

    You would need to use something similar to this: 

    RadCartesianChart radCartesian = Manager.ActiveApplication.MainWindow.Find.ByAutomationId<RadCartesianChart>("element's id");

    Please give a try and let me know if you managed to locate the element you are looking for. 

    Thanks! 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  3. Peter
    Peter avatar
    17 posts
    Member since:
    Mar 2017

    Posted 05 Apr 2017 Link to this post

    Hi, 

    Thanks I try this fork fine.

                var grid = riskAnalyzer.Manager.ActiveApplication.MainWindow.Find.ByName<Grid>("Grid");
                Console.WriteLine(grid.TextBlockContent);

    My results:

    Accounting 97.2%

    But I get only firts value how can I get all vaules ?

    Regards,

    Peter

  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    938 posts

    Posted 06 Apr 2017 Link to this post

    Hello Peter,

    I am glad hear you figured that out. 

    As far as I understand your question you would like to get the values for all cells in the grid. If this is so here is a coded sample how to go through the cells of a grid. I hope it will be useful for you! 

    Please let me know if my assumption is not correct. 

    Regards,
    Elena Tsvetkova
    Telerik by Progress
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top