Forum Discussion

googleid_105206's avatar
googleid_105206
Contributor
14 years ago

TreeItem was not Expanding




Hi

I am Working on Flex4.5 based application using TestComplete 8.6.

I am trying  click  Tree item .some times it is Expanding correctly.some times it won't Expanding.i followed below Code to expand tree item.if any other way to click Tree item.

Code:

 selectFolder="AccessRRD/Avon"

        arrFolder=Split(selectFolder,"/")

      log.Message  arrFolder(0)

      log.Message   arrFolder(1)

      delay(1000)         

      for t1=0 to ubound(arrFolder)

      log.Message t1      

      PropNames= Array("FlexObject.data.name")        

       PropValues= Array(arrFolder(t1))                    

    set objSelectFolder=Context.FindChild(PropNames,PropValues, 9)

    aqUtils.Delay 2000

      objSelectFolder.HoverMouse

      aqUtils.Delay 2000

    objSelectFolder.Click

     delay 10000                                                                      

    Next



Please Suggest me.Please find the Tree item object Screen Shots.


1 Reply

  • Hi,



    First of all, debug your code and make sure that it always obtain the correct object and that it actually works as you expect. Next, enable Visualizer and check where it clicks. Make sure that a click on this point expands your tree items.