Ask a Question

Slick grid - Row selection + pagination

nisgupta
Valued Contributor

Slick grid - Row selection + pagination

We have a grid which is not suported by testcomplete which means testComplete do not recognize as table . It recognize the grid and it row, columns, cells as panels. 

 

Grid also has pagination . 

 

What is the best way to automate such grid ? 

 

Please update 

 

Thanks

Nishchal

 

 

16 REPLIES 16
tristaanogre
Esteemed Contributor

Correct... because FindChild is not executed during design time so it doesn't know what methods or properties it will have (if any).  That's where using Object Spy and/or Object Browser is how you're going to have to get those things.  This is a manual process.


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

But I have seen sometimes it show the code completion for the object returned by FindChild methods ? Is it expected ?

 

Or they will not show code completion ?

 

Thanks

Nishchal

tristaanogre
Esteemed Contributor

Honestly, I would not expect FindChild to return anything for code completion so that fact that you ARE getting it on occasion is a surprise to me.


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

I am working on the grid where the 2 columns make the row unique. 

I have attached the screenshot ftvorgn_ss.png

second attachment showing testcomplete code in javascript.

 

Got the error 

"You are trying to call the "Parent" method or property of an object that does not exist."
 
Please advise.
 
Thanks
Nishchal

 

 

tristaanogre
Esteemed Contributor

Exactly as the message indicates... you have an object... you are trying to access it's parent through that object... but the original object, for some reason, no longer exist.  Something changed in the middle there.  Before you use an object, if there is a chance that the object is destroyed in the process, always check for existance.


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

@tristaanogre 

 

The object does not exist on the first page  . We have pagination and the object exist on the 3rd page . in the script While condition become true and it should clcik on next page but it through the error .

tristaanogre
Esteemed Contributor

You cannot call "Exists" on an object that does not exist.  Your while should FIRST check for exists... and then, once the object exists, THEN call the Parent object.  You cannot call the method or property of an object that does not exist, this includes the "Exists" property.  You need to alter your "While" 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
cancel
Showing results for 
Search instead for 
Did you mean: