Ask a Question

Find object with unlimited depth search

Ivg
Occasional Contributor

Find object with unlimited depth search

Hi,

 

Can I search with IObjectTreeNode's 'Find' method on unlimited depth?

 

Should I pass 0 to 'depth' parameter?

 

Thanks

1 REPLY 1
AlexKaras
Community Hero

Hi,

 

Most (if not all) methods and properties provided via the IObject interface are the ones provided by TestComplete/TestExecute engine. According to the documentation (https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/find-m...), to search for unlimited depth, the reasonably large number (e.g. 20000) should be specified for the depth parameter.

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: