Found a sample about this but it does not work:
Sub Findme
Set MappedObj = page.Top.Section.Buttons
MappedObj.Troubleshoot.Click() ----------------------------> did this to make sure the object is found and click work.
Count = MappedObj.NamedChildCount -------> failed on this line: unable to find the object NamedChildCount.
For i = 0 To Count - 1
Set Item = MappedObj.NamedChild(i)
If Item.Exists Then
msgbox (Item.MappedName)
Else
msgbox("The item with the " + aqConvert.IntToStr(i) + " index does not exist")
End If
Next
End Sub
Is there anything I have done wrong here?
Cheers,
Ian