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