51Testing软件测试论坛

标题: 弹出窗口选择值 的操作无法回放,如何处理? [打印本页]

作者: KC40387396    时间: 2011-11-18 15:09
标题: 弹出窗口选择值 的操作无法回放,如何处理?
本帖最后由 KC40387396 于 2011-11-21 15:54 编辑

操作:
1、在新增页面,点击按钮,弹出动态窗口,
2、 窗口列表显示相关记录,选择记录后----即在WebRadioGroup上,点击
3、在动态窗口中,按”选择“按钮,----即确定选择该记录,关闭动态窗口

其相应的脚本:分别对应以上1、2、3的操作
Browser("XXX建设信息系统").Page("XXX建设信息系统").Frame("bodyFrame_2").Image("lookup_button").Click
Browser("XXX建设信息系统").Page("XXX建设信息系统").Frame("_eos_modal_dialog0.07916492008").WebRadioGroup("WebRadioGroup").Select "#0"
Browser("XXX建设信息系统").Page("XXX建设信息系统").Frame("_eos_modal_dialog0.07916492008").WebButton("选择").Click

如题,回放时,QTP报错”Cannot identify the specified item of the WebRadioGroup object. Confirm that the specified item is included in the object's item collection. “

检查对象库,已存在有相关的WebRadioGroup对象

以下是 object spy 复制的 属性(第三条记录):
"Class Name:=WebRadioGroup",
"abs_x:=436",
"abs_y:=434",
"all items:=",
"checked:=0",
"class:=",
"disabled:=0",
"height:=20",
"html id:=group1_3_radio",
"html tag:=INPUT",
"innerhtml:=",
"innertext:=",
"items count:=0",
"name:=",
"outerhtml:=<INPUT id=group1_3_radio type=radio>",
"outertext:=",
"selected item index:=1",
"type:=radio",
"value:=#0",
"visible:=True",
"width:=20",
"x:=20",
"y:=222"


如何处理这种情况啊,图片是相应的[attach]76167[/attach]
作者: wangyanzhao    时间: 2011-11-19 15:06
你把 value 前的复选框选中 即可
作者: KC40387396    时间: 2011-11-21 09:39
本帖最后由 KC40387396 于 2011-11-21 15:56 编辑

最后一个截图只是调出来给你们看的,并没有想做输出操作
作者: 794763060    时间: 2011-11-22 10:47
同问,我也有这个问题




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2