|
最近录一个网关的GUI操作的脚本时,遇到这样一个问题。该网关的菜单是有左边树形结构构成,其中有"+","-"号展开,收起功能,当遇到两级菜单,需要连续展开时,QTP录制的对象中发现两个"+","-"号的属性是相同的,回放时就会展开后又收起了,从而Click不到想要Click的对象。
请问各位这种情况要怎么解决,希望能一起交流,共同进步!
不知道需要提供哪些信息,先放个回放结果吧。
The smart identification mechanism was invoked.
Reason: object not unique (8 objects found)
Original description:
micclass=WebElement
innertext=+
html tag=SPAN
Smart Identification Alternative Description:
Base filter properties (74 objects found)
micclass=WebElement
html tag=SPAN
Optional filter properties
html id=manageTree_expand_3 (Used, 1 matches)
class=pm (Ignored)
innertext=+ (Ignored)
visible=1 (Ignored) |
|