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

Grid Rows

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 14 Jun 2017, 01:36 PM

Hi, 

Can you tell me please how can I get rows for normal Grid using TTF?

 

  var radGridView1 = WindowScreenActuarialAssumptions.Manager.ActiveApplication.MainWindow.Find.ByName<Grid>("GridResources");
  Console.WriteLine(radGridView1.Rows.Count);

 - Rows is in red and I can't use it :( 

It's normal grid and I need to read all values from Grid not only first row!

 

Regards,

Peter

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 16 Jun 2017, 12:06 PM
Hello Peter,

Thank you for reaching us out. 

The reason why Rows is underlined is that the element is not correct identified - there is no such control Grid. You probably need to use RadGridView or HtmlTable controls' properties to access the grid's rows. 

Here you could read further details how elements are identified in the Progress Testing Framework. Also I would like to provide a coded sample that automates some actions against a html table which could be used for further reference. 

I hope this information will be useful for you to proceed automating your application. In case of further queries do not hesitate to contact us again! 

Regards,
Elena Tsvetkova
Progress Telerik
 
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
Share this question
or