googleid_105206
14 years agoContributor
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.