I have a html code that has two links but both the links have the same href value, but the onclick and the text are different. I wasn't sure as to how to access the second link. I tried using driver.find_element_by_link_text('text'), but I get a no such element found error.
<div id="member">
<"a href="#" onclick="add_member("abc"); return false;">run abc<"/a>
<br>
<"a href="#" onclick="add_member("def"); return false;">run def<"/a>
</div>