when using waitchild method, got run time error, Type mismatch: 'TestObject.WaitChild'
HI there,
I'm writing test cases in VB, and when using the method waitchild, got run time error, Type mismatch: 'TestObject.WaitChild'
below is the script:
Sub Test39
set TestObject=Aliases.Inventor.AInventor.Pane_ModelBrowser.lst_Assembly
If TestObject.WaitChild(lstbox_LandingSurface,15000) Then
log.Message "the model browser is ready"
call Aliases.Inventor.AInventor.Pane_ModelBrowser.lst_Assembly.txtBlock_LandingSurface.ClickR(30,10) 'choose landing surface node and edit feature
Else
End if
End Sub
the parent object here is Aliases.Inventor.AInventor.Pane_ModelBrowser.lst_Assembly, and the child is Aliases.Inventor.AInventor.Pane_ModelBrowser.lst_Assembly.txtBlock_LandingSurface
am I giving the wrong parameter?
thanks,
stefanie
Can you try to use the method name, .WaitAliasChild instead of .WaitChild ?
check this topic for more information: