Micro Focus QTP (UFT) Forums

Full Version: couldn't reconize the pop-up window
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi,
I am executing a script that prepares a sale receipt and deletes at the end.When i click "delete" a pop-up displays "are you sure to delete? with buttons "OK" and "Cancel". Below is the code I got for this pop-up:

Code:
Browser("Sale").Dialog("Microsoft Internet Explorer").WinButton("OK").Click
During execution, I am getting error message on this line. Saying that the object is not identified.

Can you tell me the reason?

Thanks for your help
hey qtpguru,
I observed that you are posting your queries into Posting Guidelines category. always decide the forum category relevant to your query and then post.

For your query
insert the blow statement in your script before the mentioned line and let us know what is the result
Code:
msgbox browser("Login").Dialog("Message from webpage").WinButton("OK").Exist