Forum Discussion
AlexKaras
2 years agoCommunity Hero
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.
rraghvani
Champion Level 3
2 years agoJust to add, see https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects to understand Objects.