Is it possible to use a Test Object in the repository as a description object, to identify a collection of similar objects? I want to manage the identification of objects with discriptive programming, and thought of using TOs in repo as a way to identifty collections of objects.
If I have a TO in the repository that is not unique (that is, identifies a collection of similar objects), can I use that TO as a collection? How can I then identify a specific object from that collection?
EDIT: I'll provide more detail. I've been collecting objects with same characteristics with the Description Object and descripitive programming. For example, I identify an object thorugh its xpath:
Set oDesc = Description.Create
oDesc( "micclass" ).value = "WebElement"
oDesc ("xpath").value = "//DIV[14]/DIV[1]/DIV[1]"
Set colObject = ParentObject.ChildObjects(oDesc)
Alternatively, I can also store a TO in a repository that identifies the same object above (also using the same xpath value, "//DIV[14]/DIV[1]/DIV[1]").
Now consider the case where I want to identify a collection of objects:
Set oDesc = Description.Create
oDesc( "micclass" ).value = "WebElement"
oDesc ("xpath").value = "//DIV[14]/DIV[*]/DIV[1]"
Set colObject = ParentObject.ChildObjects(oDesc)
With descriptive programming, it returns a collection of objects with the following xpath values:
"//DIV[14]/DIV[1]/DIV[1]"
"//DIV[14]/DIV[2]/DIV[1]"
"//DIV[14]/DIV[3]/DIV[1]"
...
So, my question is: Is it possible to create/use a TO in a repository to identify/manage a collection of objects? For example, use a TO in the repository with the xpath "//DIV[14]/DIV[*]/DIV[1]"?