Ask a Question

Getting Values from Grid on Angualr UI Grid

muhammadA
Occasional Contributor

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 3
tristaanogre
Esteemed Contributor

Check out the following documentation:

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

 

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.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
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 . 

 

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


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: