Forum Discussion

Gane195's avatar
Gane195
New Contributor
8 months ago
Solved

How to verify unvisible window?

 

 

If Not Sys.Process("MTAUEVO").Window("TMessageForm", "Information", 1).VCLObject("Message").Exists Then

Log.Message("Information Message Not Appear")

Else

Log.Error("Information Message Appear")

End If



This Code Worked Fine with TestComplete11 and Windows7 os Now my Operating System Upgrade to Windows10 Pro and Testcomplete11 now got error message.

 

 

 
 
 
 
  • A closed window is different from "unvisible" (invisible). 

     

    Try using the Find method followed by Exists. If the windows can not be found, and empty stub is returned and Exists will be false.

4 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    A closed window is different from "unvisible" (invisible). 

     

    Try using the Find method followed by Exists. If the windows can not be found, and empty stub is returned and Exists will be false.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    You need to check the property 'Visible' of your object.

     

    The Object must exist, in order to check for its property values.

  • MW_Didata's avatar
    MW_Didata
    Regular Contributor

    To add to rraghvani post, you could use an 'if object exists then' and under that 'If object visible then'

     

    If it doesn't exist then post log

    If it isn't visible then post log