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
- AlexKaras15 days agoChampion Level 3
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.
- rraghvani15 days agoChampion Level 3
Just to add, see https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects to understand Objects.
Related Content
- 4 years agoabinash11
- 2 years agoIrinaManea
- 2 years agomattb
Recent Discussions
- 42 minutes agoMarcusBengtsson
- 4 hours agoNisHera
- 23 hours agoeykxas