GetToProperties-获取用于标识对象的属性集;对于这个集合,有哪些属性方法呢?
GetToProperties-获取用于标识对象的属性集;对于这个集合,除了count外,还有哪些属性方法呢?我找到的都是“有count等属性方法”,谁能具体说说有哪些吗? 帮助文档自己看! 看下這個example ,就明白了Sub GetTOProperties_Example()
'The following example uses the GetTOProperties method to return a
'Property collection containing the test object description
'(properties and values) for the All kind of Link object.
'It then displays the property name and value of each property in
'the returned collection.
Set LinkObject = Browser("Index").Page("index").Link("All kind of")
Set Props = LinkObject.GetTOProperties
PropsCount = Props.Count
For i = 0 To PropsCount - 1
PropName = Props(i).Name
PropValue = Props(i).Value
MsgBox PropName & " = " & PropValue
Next
End Sub 不同的对象有不同的属性集,可以用Spy工具看一下。
页:
[1]