Forum Discussion

kandy1984's avatar
kandy1984
Contributor
9 years ago

Need user action to Collapse a panel via vb script

Hi,

 

I need to collapse a panel (see attached). At the moment im recording the user action by keyword test and converting to Keyword test doesnt recgonise the little collapse button and clicks on the co-ordinates, which i dont want. In the object spy, there is a property called Collapsed - False. How do i use this in my script so that it minimizes the panel before doing other actions?

 

 

Sub Test3()
'Clicks at point (220, 15) of the 'khgMisc' object.
Call Aliases.PFU_3.frmReferenceInfo.kspltMain.kspltMain_Panel1.khgMisc.Collapsed("True")

End Sub

 

Thanks for helping :-)

 

2 Replies

  • NisHera's avatar
    NisHera
    Valued Contributor

    check whether there is methoed/action like  Collapse(Item) or CollapseItem

    • kandy1984's avatar
      kandy1984
      Contributor

      Hi Nishera,

       

      Thanks for ur response. There are some .NET Methods for collapse as attached . Which one do i use and how do i use it?

       

      Thanks once again!