Ask a Question

How to check if an object is visible

SOLVED
Ivg
Occasional Contributor

How to check if an object is visible

Hi,

 

As I understoond 'TryFind' will return an object if it exists, regardless if it's visible or not.

 

How to check if the object is visible?  'IObjectTreeNode' doesn't have any "IsVisible" method.

 

Thanks

3 REPLIES 3
AlexKaras
Community Hero

Hi,

 

There should be Visible property provided by the IObject interface - https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/onscreen/visible-prop...

According to the code sample from https://support.smartbear.com/testleft/docs/using/creating-tests/checking-object-properties.html, this property should be accessible directly as a property of the object.

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
================================
Ivg
Occasional Contributor

Found it, thanks

AlexKaras
Community Hero

Great.

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
================================
cancel
Showing results for 
Search instead for 
Did you mean: