Forum Discussion
I got round this problem by using the "WaitAliasChild" method.
(There is a optional waitTime as parameter)
Check the documentation : https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/waitaliaschild-method.html
if(Aliases.yourAliasesName.WaitAliasChild("yourElement").Exists){
doSomething();
}
Regards
- AlexKaras10 months ago
Champion Level 2
Hi,
PhilippeS wrote:
if(Aliases.yourAliasesName.WaitAliasChild("yourElement").Exists){
doSomething();
}[Just as a side note]
Yes, this might work, but the same condition as mentioned in my previous answer applies: Aliases.yourAliasesName object (and all objects within physical objects' hierarchy that precede "yourElement" aliased object) must exist. Otherwise TestComplete will start to search for them before been able to execute the .WaitAliasChild() call.
- rraghvani10 months ago
Champion Level 3
Just to add, see https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects to understand Objects.