|
最近刚刚开始用QTP Java add-in, 先试了一下打开JavaTree,我是用Recorder录制的脚本,但是运行起来却报错了:(
脚本如下:- JavaWindow("Oracle Data Integrator").JavaDialog("Oracle Data Integrator").JavaButton("确定").Click
- JavaWindow("Designer [Getting Started").JavaTree("t").Expand "#0;#0"
- JavaWindow("Designer [Getting Started").JavaTree("t").Expand "#0;#0;#0"
- JavaWindow("Designer [Getting Started").JavaTree("t").Expand "#0;#0;#0;#1"
- JavaWindow("Designer [Getting Started").JavaTree("t").Select "#0;#0;#0;#1"
- JavaWindow("Designer [Getting Started").JavaTree("t").Click 98,62,"RIGHT"
- JavaWindow("Designer [Getting Started").JavaMenu("插入 接口").Select
- JavaWindow("Designer [Getting Started").JavaInternalFrame("接口: 新建").JavaButton("取消").Click
- JavaWindow("Designer [Getting Started").JavaDialog("接口取消").JavaButton("是(Y)").Click
- JavaWindow("Designer [Getting Started").Close
- JavaWindow("Designer [Getting Started").JavaDialog("警告").JavaButton("确定").Click
复制代码 下面是错误截屏,希望高人帮我看看,谢谢!! |
|