_:n56809d794abc47508f94cc7f30d37e7cxb11
<http://schema.org/text>
"Almost all the built in Wait functions that&amp;nbsp;rraghvani&amp;nbsp;linked to already do that.&amp;nbsp; WaitAliasChild, WaitChild, WaitProcess, etc, all operate as a &quot;timeout&quot; where you set a value (10 seconds in your example) but it only waits as long as necessary.I&apos;d start looking there, rather than building an extra custom function."
<https://community.smartbear.com/discussions/testcomplete-questions/how-to-create-custom-script-for-dynamic-wait-for-desktop-and-web/247776>