51Testing软件测试论坛

标题: 下拉列表回放时QTP报错 [打印本页]

作者: zhengpeipei    时间: 2009-7-17 17:28
标题: 下拉列表回放时QTP报错
在录制一个网页时上面有一个“籍贯”的选项,回放时老是通不过,提示“The object was not found using the test object description. Check the object's properties.”
这该怎么解决啊?请高手指点一下,谢谢!!!
代码如下:
Browser("欢迎光临xxx").Page("xxx-基本信息").WebList("pNativelc").Select DataTable("p1", dtGlobalSheet)
Browser("欢迎光临xxx").Page("xxx-基本信息").WebList("select19").Select DataTable("p2", dtGlobalSheet)
Browser("欢迎光临xxx").Page("xxx-基本信息").WebList("select19_2").Select DataTable("p3", dtGlobalSheet)

作者: wu_xcw    时间: 2009-7-17 17:40
Browser("欢迎光临xxx").Page("xxx-基本信息").WebList("name:=select19","index:=0").Select DataTable("p2", dtGlobalSheet
Browser("欢迎光临xxx").Page("xxx-基本信息").WebList("name:=select19","index:=1")
看看select19对应的属性是什么,如果是name就写成name:=select19
作者: zhengpeipei    时间: 2009-7-17 17:56
标题: 回复楼上的帖子
是name,Index为2
作者: zhengpeipei    时间: 2009-7-17 18:02
标题: 试了一下还是报错
报错内容如下:
Cannot identify the specified item of the [ select19 ] object. Confirm that the specified item is included in the object's item collection.
Line (22): "Browser("欢迎光临xxx").Page("xxx-基本信息").WebList("name:=select19","index:=0").Select DataTable("p2", dtGlobalSheet)".
作者: zhengpeipei    时间: 2009-7-17 18:31

作者: wtucel    时间: 2009-7-18 17:47
每句后加个wait(3)  试试
作者: zhengpeipei    时间: 2009-7-20 16:48
标题: 回复楼上的帖子
试了一下,还是不行
作者: nbkhic    时间: 2009-7-20 17:11
在这过程中页面是否有刷新?
作者: wu_xcw    时间: 2009-7-20 17:34
你用SPY把其属性值粘贴上来看看
作者: helina168    时间: 2009-7-20 21:09
路过,学习了!




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