Forum Discussion
Abramova
Staff
14 years agoHi,
You can use the FindAllChildren method to search for all added items and then perform the same actions over each item in a loop. For example, you can use the following code:
Set w = Sys.Process("iexplore").Page("http://server/Default.asp").document.frames.Frame("mainFrame").document.all
Set items = w.FindAllChildren("idStr","gdvDepositDetails_*_ddlDepositType")
If UBound(items) >= 0 Then
For i = 0 To UBound(items)
' Perform needed actions
Next
Else
Log.Warning("No items found.")
End If
To match dynamic characters in the idStr property value, you can use the asterisk (*) wildcard. For more information, please read http://smartbear.com/support/viewarticle/18943/.