Forum Discussion
Hi,
> var checkBox = Aliases.MyApplicationName.Settings.WaitQtObject("abc", 2000);
When you get such error in JScript (maybe, in JavaScript as well), this usually means that the parent object was not found. And the text of the error is caused by the JScript language specifics (not related to TestComplete).
I would suggest to change the quoted line of code to
var checkBox = Aliases.MyApplicationName.WaitAliasChild('Settings', 30000).WaitQtObject("abc", 2000);
and check if it helps.
Thanks Alex. When I try the way you suggested, I get this error:
The object "AliasChild("thirdChild")" does not exist.
I changed "QtObject" to "WaitAliasChild". I think that Qt objects cannot use WaitAliasChild method ?
- AlexKaras7 years agoChampion Level 3
Hi,
> I think that Qt objects cannot use WaitAliasChild method ?
.WaitAliasChild() method exists only for the objects that are NameMapped. As the thirdChild object is not NameMapped but is just a child of the Settings object that is NameMapped, you should use .WaitAliasChild() method to wait for the Namemapped object and .WaitQtObject to wait for the regular Qt child. Like it was in my example.
Related Content
- 4 years agoJackalNZZ
Recent Discussions
- 9 hours agosimonaferrara
- 18 hours agoSubhraDas