Oferv
14 years agoSuper Contributor
WaitAliasesChild cannot found existing child object
Hi,
i'm using WaitAliasesChild in order to find a child object that has just been added to the application and TC is unable to find it.the name of the new object as display in the object spy is as follows ("TextBlock", AddedDocumnt, 1). so my WaitAliasesChild looks like this
Aliases["DesktopMainWindow"]["NavigationalPaneTOCTree"]["WPFObject"]("TreeViewItem", "", UpdatedTab)["WaitAliasChild"](("TextBlock", AddedDocumnt, 1), 10000)["Exists"]
UpdatedTab - is the tab where the new document was updated which it's randomal
AddedDocumnt - is the document name that was updated
is there a problem with that or should it work according to what i wrote?
Thanks
i'm using WaitAliasesChild in order to find a child object that has just been added to the application and TC is unable to find it.the name of the new object as display in the object spy is as follows ("TextBlock", AddedDocumnt, 1). so my WaitAliasesChild looks like this
Aliases["DesktopMainWindow"]["NavigationalPaneTOCTree"]["WPFObject"]("TreeViewItem", "", UpdatedTab)["WaitAliasChild"](("TextBlock", AddedDocumnt, 1), 10000)["Exists"]
UpdatedTab - is the tab where the new document was updated which it's randomal
AddedDocumnt - is the document name that was updated
is there a problem with that or should it work according to what i wrote?
Thanks