01-05-2012, 02:55 PM
Code:
For intObjectFound = 0 to Frame_ShipmentPage.Count
Set WebElement_ActionBtn = Frame_ShipmentPage(intObjectFound).ChildObjects(ActionDesc)
If WebElement_ActionBtn.Count <> 0 Then
Exit For
End If
Next
In the above loop, the array base in dex will be 0. so the maximum value should be Frame_ShipmentPage.Count-1.
Code:
For intObjectFound = 0 to Frame_ShipmentPage.Count-1