Expanding tree node in QTP

时间:2017-11-13 06:21:17

标签: vbscript treeview qtp hp-uft

I am trying to expand a tree node in an application using HP UFT. I tried using Swfwindow("Windowname").SwfTreeView("Treename").Expand "nodename"

I tried sending keyboard buttons via script : rightarrow, leftarrow, +, -, *

But it is of no use. The application does not allow to expand the tree.

The tree structure is like : (+)treeName

So working around, I manually expanded and collapsed the tree, then tried running the script, it seem to worked. So this suggests the tree does not expand using the script, but if I manually expand and close and then try the script, it works fine.

Could you suggest if I can handle this kind of application build in QTP?

1 个答案:

答案 0 :(得分:0)

Swfwindow(“Windowname”)。SwfTreeView(“Treename”)。激活“Parent; Child1” 其次是Swfwindow(“Windowname”)。SwfTreeView(“Treename”)。输入micDwn