Hi Vijay,
Create a event handler function for the event OnLogError. something like
For process_count = 0 To Sys.ChildCount - 1
process_count = 0 .ChildCount - 1
Set p = Sys.Child(process_count)
if p.ProcessName ="iexplore" then
Log.Message(" IE instance : " &process_count & " :: " & p.ProcessName)
Call aqUtils.Delay(2000,"Delay for closing : " & p.ProcessName)
p.Close
end if
' If there are other processes which brings up windows or dialogs, pls. do the same as above
Next
Similarly for UnexpectedWindow also create a event handler to handle the unexpected window like
Sub GeneralEvents_OnUnexpectedWindow(Sender, Window, LogParams)
if LogParams.str="Unexpected window" then
Log.Message(" Full name of the unexpected window : " &Window.FullName)
Window.Close()
else
Log.Message(" Full name of the unexpected window : " &Window.FullName)
Sys.Process("iexplore").Window("#32770", "Windows Internet Explorer", 1).Close()
end if
HTH
Girish