How to iterate loop over anchor tags in desktop application

If its java based then you can setup additional dll and you will be able to identify them correctly.
See below: