ArmandsBruns
13 years agoFrequent Contributor
FindAllChildren Method
Hi,
Maybe someone knows
I have a function to find the last value("Correct") in list and click on it.
But how can I search a value("Correct") the one before the last value("Correct") in list and click on it?
---------------------------
Function SearchPropValue(Location )
Dim SearchObject
propArray=Array("innerText")
propValue=Array("Correct")
SearchObject = Location.FindAllChildren(propArray,propValue,20000,True)
If UBound(SearchObject)>=0 Then
i=0
For i = UBound(SearchObject) to LBound(SearchObject) Step - 1
SearchObject(i).Click
Next
Else
Log.message("Not find - Correct")
End if
End Function
-------------------------
BR
Armands
Maybe someone knows
I have a function to find the last value("Correct") in list and click on it.
But how can I search a value("Correct") the one before the last value("Correct") in list and click on it?
---------------------------
Function SearchPropValue(Location )
Dim SearchObject
propArray=Array("innerText")
propValue=Array("Correct")
SearchObject = Location.FindAllChildren(propArray,propValue,20000,True)
If UBound(SearchObject)>=0 Then
i=0
For i = UBound(SearchObject) to LBound(SearchObject) Step - 1
SearchObject(i).Click
Next
Else
Log.message("Not find - Correct")
End if
End Function
-------------------------
BR
Armands