Forum Discussion

murugans1011's avatar
murugans1011
Regular Contributor
12 years ago

How to log unexpected window error message

I m using vbscript.I have an msgbox as an unexpected window.how to post msgbox error to testcomplete log?
  • If the index of the child window with the text message that you want is always 0 then you could use a wildcard like



    Log.Error Sys.Process("ERPQuickLauncher").Window("#32770", "ERPQuickLauncher", 1).Window("Static", *, 0).WndCaption



    Another option is to use the FindChild method

    http://support.smartbear.com/viewarticle/28019/