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

Coded UI + RadCartesianChart

3 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 31 Mar 2017, 12:24 PM

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

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 05 Apr 2017, 08:42 AM
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
 
0
Peter
Top achievements
Rank 1
answered on 05 Apr 2017, 08:49 AM

Hi, 

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

0
Elena
Telerik team
answered on 06 Apr 2017, 02:54 PM
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
 
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Elena
Telerik team
Peter
Top achievements
Rank 1
Share this question
or