02-01-2010, 10:17 AM
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
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