Ivg
8 years agoOccasional 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
Hi,
There should be Visible property provided by the IObject interface - https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/onscreen/visible-property-onscreen-object.html.
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.