; Note that we usually say 'a' before array type variables
Local $aElement = _WD_FindElement(...)
; For each element in the array
For $i=0 To UBound($aElement) - 1
; Perform the action on that element, we access it with $i, which goes from 0, 1, 2, etc until the size of the array
_WD_ElementAction($sSession, $aElement[$i], "click")
Next
Edit: You should probably be checking for @error after each _WD_ call if you aren't already