Ask a Question

The object "PopupRoot" does not exist.

SOLVED
nagavineela
New Contributor

The object "PopupRoot" does not exist.

Hi All

   Automation tests in TestComplete are failing with "

The object "PopupRoot" does not exist.

while testing desktop application. 

same project when executed in another PC, tests are passing. 

Please help me in getting this resolved 

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: The object "PopupRoot" does not exist.

Frequently there is a difference between PCs in how the application under test is being loaded or the pages are displayed or other timing issues.  I suggest using a Wait function to look for your object to actually exist before you perform any actions on it.  Put this right before the line that gives you the "does not exist" error.  

 

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-process-or-window-a...


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

View solution in original post

3 REPLIES 3
Marsha_R
Community Hero

Re: The object "PopupRoot" does not exist.

Frequently there is a difference between PCs in how the application under test is being loaded or the pages are displayed or other timing issues.  I suggest using a Wait function to look for your object to actually exist before you perform any actions on it.  Put this right before the line that gives you the "does not exist" error.  

 

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-process-or-window-a...


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

View solution in original post

nagavineela
New Contributor

Re: The object "PopupRoot" does not exist.

Thank you. 

When i run the test on the station/PC the test is passing.

Failing with Popuproot when i trigger and disconnect the PC/station.

Issue observed in the above scenario only. 

the same test is passing on the other PC's whichever way i execute.

Please help

Marsha_R
Community Hero

Re: The object "PopupRoot" does not exist.

My suggestion is the same.  Add a check for object exists before the line that fails.  Perhaps when you disconnect and reconnect then the object is not loading fast enough for TestComplete to see it.  You need to have TestComplete wait until it sees the the object and then continue.  Using the Wait will do that for you.


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: