Not recognizing the IE message dialog - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Not recognizing the IE message dialog (/Thread-Not-recognizing-the-IE-message-dialog) |
Not recognizing the IE message dialog - adpbinu - 01-29-2010 QTP 9.5 Build 194 and testing a web application (DNN application). The action is to delete a user. When clicking on the Delete button, application displays a confirmation message, which is an IE dialog with OK & Cancel buttons. When recording the action, it added the following line of code:- Code: Browser("User Accounts").Dialog("Microsoft Internet Explorer").WinButton("OK").Click Thanks, Binu. RE: Not recognizing the IE message dialog - Saket - 02-01-2010 may be dialog is not there when QTP executes the statement. put a wait/sync statement just before the stament or check the existance of dialog before clicking the button. like Code: if Browser("User Accounts").Dialog("Microsoft Internet Explorer").Exist then Browser("User Accounts").Dialog("Microsoft Internet Explorer").WinButton("OK").Click RE: Not recognizing the IE message dialog - adpbinu - 02-05-2010 The problem is not that the message dialog exists or not, but the problem is that it does not recognize existance of the dialog box. Thanks, Binu. |