Forum Discussion

DKumar04's avatar
DKumar04
Contributor
6 years ago

check object on screen

Is there any way to check the object displayed on screen? When asserting using the property of the object inside aqObject.Checkproperty(), it returns true even before the object visible on screen.

 

I need a method such it works only if the object displayed on the screen

  • TestComplete provides access to the "Visible" and "VisibleOnScreen" properties of the objects.  This is probably your best bet in what you're looking for.

     

    Before you verify those, you'll want to check for existance using WaitChild or FindChild to search for the object and check the "Exists" property on the result.

  • DKumar04's avatar
    DKumar04
    6 years ago

    I fixed the problem using FindEx() method and its working expected

  • DKumar04's avatar
    DKumar04
    6 years ago

    I fixed using FindEx() method and it was working as expected

3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    TestComplete provides access to the "Visible" and "VisibleOnScreen" properties of the objects.  This is probably your best bet in what you're looking for.

     

    Before you verify those, you'll want to check for existance using WaitChild or FindChild to search for the object and check the "Exists" property on the result.

    • DKumar04's avatar
      DKumar04
      Contributor

      I fixed using FindEx() method and it was working as expected

    • DKumar04's avatar
      DKumar04
      Contributor

      I fixed the problem using FindEx() method and its working expected