For each UIElement is not working

Assuming you are trying to click based on the filename (which you already know) then just use a regular Click activity with the filename dynamic in the selector (probably the aaname property of the A tag).