【发布时间】:2015-08-01 06:20:02
【问题描述】:
我正在尝试打印页面上所有链接的名称。我写了下面的代码-->
SystemUtil.Run "Chrome.exe","www.timesofindia.com"
Dim obj, objects,objectnames,i
Set obj = Description.Create
obj("micclass").value = "Link"
objects = Browser("micclass:=browser").Page("micclass:=Page").ChildObjects(obj)
MsgBox Err.number
For i = 0 To obj.Count-1 Step 1
childnames = objects.getROProperty("innertext")
print childnames(i)
Next
我在objects = Browser("micclass:=browser").Page("micclass:=Page").ChildObjects(obj) 行中遇到一般运行错误
MsgBox Err.number 行给出错误号-2147467259
我试图通过错误号--2147467259 找出原因,但没有得到任何相关答案。请帮忙。
【问题讨论】:
标签: qtp child-objects