Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not recognizing the IE message dialog
#1
Not Solved
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
But when running the test, it gives an error message saying "Run Error. Object is not visible......."

Thanks,
Binu.
Reply
#2
Not Solved
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

Reply
#3
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help for instruction to click on Skip button in the warning message vijilesh 0 1,530 09-16-2018, 03:48 PM
Last Post: vijilesh
  QTP not recognizing date calendar kQTPs 1 3,615 12-20-2017, 11:21 PM
Last Post: harikrishna
  WPF DataGrid is not recognizing properly suvenduitc@gmail.com 0 3,292 02-13-2014, 03:27 PM
Last Post: suvenduitc@gmail.com
  recovery scenario for closing a message box itself ashima 0 2,242 12-26-2013, 11:10 AM
Last Post: ashima
  message box,need to put code in fn library diya 6 4,001 12-05-2012, 10:52 AM
Last Post: diya

Forum Jump:


Users browsing this thread: 1 Guest(s)