cancel
Showing results for 
Search instead for 
Did you mean: 

Slick grid - Row selection + pagination

Community Hero

Re: Slick grid - Row selection + pagination

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
[Community Expert Group]
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
Super Contributor

Re: Slick grid - Row selection + pagination

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

Community Hero

Re: Slick grid - Row selection + pagination

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
[Community Expert Group]
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
Super Contributor

Re: Slick grid - Row selection + pagination

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

 

 

Community Hero

Re: Slick grid - Row selection + pagination

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
[Community Expert Group]
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
Super Contributor

Re: Slick grid - Row selection + pagination

@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 .

Community Hero

Re: Slick grid - Row selection + pagination

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
[Community Expert Group]
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