I have SwfWindow Browsers and objects in my application under test. A window takes about 40 seconds to open at the start of the application.
I want to know if the Goop window is open. I made up the name. If it is some bad word for some group of people in the world, I don't know about it.
This is how QTP is responding to different code:
mExist = SwfWindow("Goop").exist <- Property is not valid for this type of object
mExist = SwfWindow("Goop").exist(120) <- It takes about 10 seconds to move to the next line of code. mExist is false. The Browser did not appear when it moves to the next line. The results do not show an error.
I attempted looking for some other property in a loop. QTP fails after looking for the property if the browser takes more than about 10 seconds to appear.
Exist is definitely a valid property for the object type (are you sure the OR indicates that Goop is actually a swfWindow?) so I would expect it to work. Also, I don't know why it moves on after only 10 seconds when you set the timeout to 120 seconds - that sounds like it cannot find the object so is using SmartIdentification with a short default timeout.
Are you sure you have the .Net add-in enabled when you launch QTP?
Have you tried switching to a WaitProperty("enabled") instead?