Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vbscript QTP中的对象必需错误_Vbscript_Qtp - Fatal编程技术网

Vbscript QTP中的对象必需错误

Vbscript QTP中的对象必需错误,vbscript,qtp,Vbscript,Qtp,我正在尝试单击web表(Emp索引)单元格(2,3)中的第三个链接 设置EditLink=Browser(“Browser”).Page(“Page”).WebTable(“Emp Index”).ChildItem(2,3,“Link”,2) 编辑链接,点击 运行脚本QTP时,显示“所需对象:第(2)行编辑链接。单击”错误。 任何主体都可以在这方面提供帮助。当单元格存在且存在链接类型的子对象时,将返回此错误,但不包含此索引(3)。尝试通过以下方式确认是否存在索引为0的链接: Set EditL

我正在尝试单击web表(Emp索引)单元格(2,3)中的第三个链接

设置EditLink=Browser(“Browser”).Page(“Page”).WebTable(“Emp Index”).ChildItem(2,3,“Link”,2) 编辑链接,点击

运行脚本QTP时,显示“所需对象:第(2)行编辑链接。单击”错误。
任何主体都可以在这方面提供帮助。

当单元格存在且存在链接类型的子对象时,将返回此错误,但不包含此索引(3)。尝试通过以下方式确认是否存在索引为0的链接:

Set EditLink = Browser("Browser").Page("Page").WebTable("Emp Index").ChildItem(2,3,"Link",0) 
MsgBox EditLink.Exist(0)
要查看该链接在页面上的位置,可以使用
EditLink.Highlight


从这一点开始,您可以开始调试,查看是否存在索引为1、2和3的链接。

当单元格存在且存在链接类型的子对象时,返回此错误,但不存在此索引(3)。尝试通过以下方式确认是否存在索引为0的链接:

Set EditLink = Browser("Browser").Page("Page").WebTable("Emp Index").ChildItem(2,3,"Link",0) 
MsgBox EditLink.Exist(0)
要查看该链接在页面上的位置,可以使用
EditLink.Highlight


从这一点开始,您可以开始调试,查看索引为1、2和3的链接是否存在。

尝试使用函数单击webtable中的链接


选中此项。

尝试使用函数单击webtable中的链接

看看这个