ChildItem:
Description: ChildItem method is used when we want to get a test object from the cell in a web table by type and index.
Syntax: Browser().Page().Webtable().ChildItem (Row, Column, MicClass, Index)
Return Type: An Object object.
Note: Index is used if there are more than one object of type MicClass. The First object has an Index of zero.
Example:
Function Example_ChildItem()
Set ObjObject= Browser("Browser").Page("Page").WebTable("Webtable").ChildItemCount(1, 2, "WebCheckbox",1)
End function
ChildItemCount :
Description: ChildItemCount method is used when we want to get the number of objects of a specific
type in the specified cell in webtable.
Syntax: Browser().Page().Webtable().ChildItemCount (Row, Column, MicClass)
Return Type: A Long Value
Function Example_ChildItemCount()
Dim IntCount
IntCount= Browser("Browser").Page("Page").WebTable("Webtable").ChildItemCount(1, 2, "WebCheckbox")
End function
No comments:
Post a Comment