I think if I plot a  graph for a question most often asked on QTP Forum, the winner would be, question related to pop up window not being recognized.

How to identify a popup window in UFT?
This problem in its various flavors is as below (excerpts taken directly from forum):
********************************************************************
I am regular visitor of your blog, its helping me a lot in learning QTP.
Thanks for creating such a nice blog.
I recorded a small script on deleting an Employee record.
When I tried to delete, it throughs a message saying “Are you sure to delete this data?”, then I clicked on OK button.
But while running the script its not performing action on OK button, I am getting Run Error as follows:
<<<
Run Error Object not visible
Line (140): “Browser(“ABC.com”).Dialog(“Windows Internet Explorer”).WinButton(“OK”).Click”.
>>>
I checked that Objects’s physical description is correct.
Can you please help me in correcting this error.


********************************************************************
I’m trying to record a Windows Application using QTP. It works all fine till when another Window pops-up where we have to make some selection.
Any changes made on the pop-window are actually recorded, but when trying to run they Fail.
The reason it states is that:
Cannot find the “***” object’s parent “New Activity” (class Window). Verify that parent properties match an object currently displayed in your application.
Can anyone please tell me what might be the problem and how can I rectify it??
I even tried to record “low-level”, which would record the clicks, but even that doesn’t seem to recognize the object. But I don’t understand why should low-level recording also bother about object, because I thought all it takes is the X and Y co-ordinates but not the object properties (Somebody correct me if I’m wrong).

********************************************************************
I am trying to use QTP on visual basic application it does not recognise the a pop up window whe I have to click on YES please help me
********************************************************************
We have .net application in which when we add menu. This menu opens a new popup window. I have tried lot of ways however QTP is unable to identify objects in the second window. Can u pls tell me what shd be done?
********************************************************************
and the list of similar questions continue…

Solution:
The problem here is that the parent object does not have a “visible” property enabled by default which leads to the situation that while running QTP is not able to identify pop-up window. So here are the steps to resolve the problem.

  1. Identify the parent object class.
  2. Go to Tools > Object identification.
  3. Select Environment.
  4. Select Test Object Class as identified in 1) above.
  5. Go to Mandatory Properties.
  6. Click on Add/Remove.
  7. Select visible property.
  8. Record the part of your application again.
  9. Now UFT/QTP should be able to identify the pop-up window.

Please let me know through the comments below if this solved your problem.