| || |
I'm passing an array to FindAllChildren to identify how many links I have on the page, which is okay.
But, when i'm looping it through to click on the links, it starts from the bottom link.
p1 = Array("tagName", "className")
v1 = Array("A", "A1")
Call Items(p1, v1)
' get objects...
objs = page.FindAllChildren(p1, v1, 5)
For i = 0 to UBound(objs)
How are these links displayed in the Object Browser? TC will work with them in the order they are shown in the object tree.
for example they are something like this:
Transaction Step Search
but the loop always start from the bottom and upwards...
for i = 0 to UBound(objs)
' the Zero (index) is the last link, in this case it's "Merchant Transactions" then Order Transactions...
I suggest that you sort the resulting array in the ascending order by using the Top property of your links. Also, you can try iterating through the array starting from the last item rather than starting from the first one.