Forum Discussion

lucieneven's avatar
lucieneven
Contributor
14 years ago

object of PopupMenu doesn't exist during the play

Hello,



I have a quick question about popup menu which doesn't exist during the play. During the java webstart test, error throws when trying to executing the code:



Call panel.PopupMenu.MenuItem1.Click(31, 8)



As enclosed 2.png, missing object refers to PopupMenu.



As can be seen from 1.png and 3.png, i went to both NameMapping and Object Browser and verified that it's the truth that PopupMenu doesn't exist at all! That's weird,



I read through the help of "Handling the 'Object Does Not Exist' Error", i think most likely it's the problem of "The object has not been created by the time TestComplete tries to obtain it."



However, looking at "Possible Causes of the Problem", the Waiting
for Process or Window Activation
doesn't help in this case.



Enclosed you'll see the 4.png, basically i don't understand why the popup menu appears during the test but PopupMenu can't be seen in the NameMapping and Object Browser.



In this case, could you please shed some light here what i can do? Before that, i did a try with Object Spy, as shown by 5.png, the hiarachy display correctly. So the problem for me is why PopupMenu doesn't exist during the test, neither NameMapping nor Object Browser, although it can be identified by Object Spy.



Thanks for your help, it's really a headache for me!



Lucien

2 Replies

  • sorry for the enclosed screenshot, i don't know why the file name was changed after having uploading. Just for the information:



    1x.png refers to 1.png 

    2x.png refers to 2.png

    3x.png refers to 3.png

    4x.png refers to 4.png

    5x.png refers to 5.png



    again, sorry for the inconvenience.



  • Hi Lucien,

    I have sent you a message via e-mail regarding the problem with the test playback (I could not reproduce the problem, yet). Let's continue working on the issue there.