|
我没有测试过TreeView的控件,但我看了sqaBasic的相关帮助,我想可能是由于楼主的ItemText部分写错了。楼主的这个有四层,可能根本就不需要写这么多层的名称。由于楼主的具体测试环境我不太清楚,我把帮助上的内容拷在这,楼主参考参考吧!
ItemA->ItemB This is a standard parent/child relationship used when the string limit has not been exceeded. It instructs Robot to look for ItemB in ItemA.
->ItemB In this example, one or more parent items have been dropped. It instructs Robot to look for ItemB anywhere in the tree.
->ItemB->->ItemC In this example, Robot looks for ItemC anywhere in the ItemB subhierarchy and only in the ItemB subhierarchy.
.->ItemB This example introduces a new syntax element ?the dot (??. A dot instructs Robot to look in the currently selected level of the tree. In this example, Robot looks for ItemB as a child of the currently selected item.
.->ItemB->->ItemC In this example, Robot looks for ItemC anywhere in the ItemB subhierarchy. ItemB is a child of the currently selected item. |
|