|
如题.
我想用将当前页面找一个name为"Number Added" WebTable, 脚本如下.运行报错:没有这个方法或属性.
Public Function ObjWebTable()
Set oDesc = Description.Create
oDesc("micclass").Value = "WebTable"
Set Webtables = Browser("---------").Page("--------").ChildObjects(oDesc)
NoofWebtables = Webtables.count
msgbox NoofWebtables
For i =0 To NoofWebtables-1
Set aa= Webtables(i).name
If Trim(aa)=trim("Number Added")Then
msgbox "aa"
else
msgbox "bb"
End If
Next
End Function
Set aa= Webtables(i).name这句肯定有问题的,或者用其他方法区分不同的Webtable?请高人指点! |
|