Forum Discussion

muhammadA's avatar
muhammadA
Occasional Contributor
7 years ago

Getting Values from Grid on Angualr UI Grid

Hi Eveyone, 

I am using TestCompte 12.20 version . 

I am trying to verify the values of the attached webpage grid. The xpath is dynamic . I need to find out is ther any other way to get the date from the grid and verify . 

 

Thanks

 

3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Check out the following documentation:

    https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/web/angular-ui/grid/properties.html

     

    Once you properly identify the grid object, you can reference values within the grid using the wValue property of the grid, passing in row and column values.  For loops work well for traversing a grid, going through all the rows to check the values in a particular column.  If you know what row and column you want to check, you don't even need a for loop.

    • muhammadA's avatar
      muhammadA
      Occasional Contributor

      Thank you Robert for your valuable feed back 

      I am in initial stages of learning Test complete . would you please send me an example code to address this issue . 

       

      Thank you . 

       

      • Marsha_R's avatar
        Marsha_R
        Champion Level 3

        If you go to the link that tristaanogre sent and click on each of the property names, there are code samples there.