I am using selenium with python. All of the HTML shares the same div class "links". There are seven links in total on the page, each with the same class and part of th