cancel
Showing results for 
Search instead for 
Did you mean: 

check object on screen

SOLVED
Contributor

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

3 ACCEPTED SOLUTIONS

Accepted Solutions
Community Hero

Re: check object on 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.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Contributor

Re: check object on screen

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

Contributor

Re: check object on screen

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

3 REPLIES 3
Community Hero

Re: check object on 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.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Contributor

Re: check object on screen

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

Contributor

Re: check object on screen

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

New Here?
Join us and watch the welcome video:
API Testing Mistake #2
APITestingMistake#2
Top Kudoed Authors