Forum Discussion

rmishra's avatar
rmishra
Contributor
14 years ago

compare objects

hi,

i need to create a script where in i need to check a particular button or tab is present or absent after making some changes- before changes and afetr making changes. how to capture using Test complete whether the particular button or Tab is not present. Can object or property checkpoint  be used for this..?
  • Hi,



    Wait for your target object and check the result. This allows you to find out whether an object exists.
  • RajibPradhan's avatar
    RajibPradhan
    Occasional Contributor
    Hello Radha,

     To verify whether an object is present or not, use the property "Exists".

    You can check like following:

    If object.Exists = False Then

      Log.Message "Object does not exists"

    Else

      Log.Message "Object does exists"

    End If



    Thanks,

    Rajib
  • Thanks Rajib and Jared , the article link and  code ample is working fine now with my application. Thanks again