Grid Rows

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

    Posted 14 Jun 2017 Link to this post

    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

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    938 posts

    Posted 16 Jun 2017 Link to this post

    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
     
Back to Top