Ask a Question

Not able to perform actions after window refresh

SOLVED
Nitiz_verma
New Contributor

Not able to perform actions after window refresh

i am not able to perform actions on objects after the window is refreshed by any previously performed actions.

I have tried to perform action on a window Form object and i am able to do so if I click on this object directly after logging into the application but if i do so after performing a set of actions on the same page that refreshes this page, i get the error message given below.

 

"You are trying to call the "WinFormsObject" method or property of the "WinFormsObject("stlpMain")" object that does not exist."

 

Can anyone help me out.

 

I am using TestComplete version 9 on desktop based application.

 
1 ACCEPTED SOLUTION

Accepted Solutions
Colin_McCrae
Community Hero

Re: Not able to perform actions after window refresh

If I had to guess, I would say a top level object is having it's properties changed at some point. Once you lose a top level object/container, no child objects below it will be found either.

 

But, that's a guess. As @baxatob said, more detail on the error would help.

View solution in original post

3 REPLIES 3
baxatob
Community Hero

Re: Not able to perform actions after window refresh

Can you show the code that raises mentioned error? 

Colin_McCrae
Community Hero

Re: Not able to perform actions after window refresh

If I had to guess, I would say a top level object is having it's properties changed at some point. Once you lose a top level object/container, no child objects below it will be found either.

 

But, that's a guess. As @baxatob said, more detail on the error would help.

View solution in original post

Nitiz_verma
New Contributor

Re: Not able to perform actions after window refresh

Thanks Colin..

Your insight helped me find a solution.

I used FindChild() to get to the object i needed to perform action on.

cancel
Showing results for 
Search instead for 
Did you mean: