51Testing软件测试论坛

标题: 这代码为什么会报错 [打印本页]

作者: xiexiaoting    时间: 2015-12-25 09:15
标题: 这代码为什么会报错
Set objbrowser = description.Create()
objbrowser("micclass").Value = "browaer"
Set objpage = Description.Create()
objpage("micclass").Value = "page"
t = Browser(objbrowser).page(objpage).object.selection
MsgBox t
作者: 诸葛东明    时间: 2015-12-25 21:53
这段脚本是用QTP操作一个页面的选择框吗?

问题1:第二行的browser拼写错误
问题2:vbscript里的对象在set之前先声明一下
另外贴一些报错信息才好排查
作者: xiexiaoting    时间: 2016-2-17 08:47
xiexie




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