Micro Focus QTP (UFT) Forums

Full Version: QTP not recording Java pop window
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
QTP not recording Java pop window
I read post by Ankur :
By default, QTP does not record on the pop-up windows. The reason why QTP does not record is that the menu's parent window is not visible. By default, QTP records a command if the object and all its parents are visible. In order to enable recording on an object with an invisible parent, the parent must have the visible property as one of the mandatory properties.Hence set the visible property to mandatory for the parent object.

I am not sure if I understood this solution .
Where do I set the visible property.

Please advise.
Hi yashvi,

Go to Object Identification --> select the mandatory properties in that add the visible property to Mandatory properties
Go to Object repository--> click the add button --> select the pop window with the hand symbol ---> click ok.All the updated properties are added to the Pop window object.

Regards
Bala
Hi Friends,

Can anyone please explain, what do you mean by Java Pop-up Window, if possible provide a screen shot.

Thanks,
QTPgrd
Solution that you provided, didn't work.
Some how it is recording JavaWindow as just window.

When I tried:
If Window("text:=Import Vendor Inventory").Exist Then
Msgbox "True"
End If

This returns true.
Now when I try to add/spy on buttons on this window, it only identifies window and none of the component like button on it is recognised.

I am not sure whats missing.
Please help.
I figured out the issue, it was with the code.
I don't understand the actual reason though.
On JDialog form, processEvent() function was defined.
When I commented that function , QTP works fine with this pop up form.

Pleas post a reply if you know the actual cause for this.
Thanks
Yeshvi