' add GetItemsCount as a method of the WebList class
RegisterUserFunc "WebList", "GetItemsCount", "GetItemsCountFunction"
' =============================================================
' function : GetItemsCountFunction
' desc : Returns the number of items from a weblist
' =============================================================
Function GetItemsCountFunction(objWebList)
If (objWebList = Nothing) Then
GetItemsCount = 0
Else
GetItemsCount = objWebList.GetROProperty("Items Count")
End If
End Function
Wednesday, 19 October 2011
QTP Script: Register a procedure with an object class
21:13
No comments
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment