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:
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.
- Spy the Dialog and see what are the properties it has.
- Now open OR and see what are properties QTP picked to identify the Dialog
- Try to add some other unique property to the OR like "text" or "nativeclass"