cancel
Showing results for 
Search instead for 
Did you mean: 

I am getting more object number than actual values when I try to get text fields object counts

AlexKaras
Community Hero

Re: I am getting more object number than actual values when I try to get text fields object counts

> But VisibleOnScreen has always been accurate for me. I'll keep an eye out for that one!

I will as well.

BTW, what was the value of VisibleOnScreen when the element was out of view (i.e. beyond the visible part of the page)?

I used to try to avoid VisibleOnScreen property because it seems to be too 'fragile' for me. It is set to False whenever the object is not immediately visible to the user (i.e. when the part of the form is overlapped with some other UI element, or when the tested application is overlapped by TestComplete on a single-monitor systems, etc.). That is why I am always trying to find some other property(ies) instead of VisibleOnScreen.

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Colin_McCrae
Community Hero

Re: I am getting more object number than actual values when I try to get text fields object counts

I've always found it to be pretty good.

 

If an object is off screen (but would scroll on if required), I find Visibe = True, Enabled = True but VisibleOnScreen = False. Which is what you'd want.

 

Same with hidden objects (in my current .NET/Delphi project), overlapping objects in web applications etc etc.

 

It actually helped flag up a problem with the Delphi stuff I'm currently working on as the main menu of a module was re-generating it's buttons each time it re-drew without destroying the previous instances as it should have been.

 

I always have TC minimised during a run (and the Excel sheet driving it set to invisible) to avoid overlap problems like that.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors