How to click dynamic links