Please find the below html code:
<fieldset class="attachmentTable large"><legend>SMF :</legend>
<table cellspacing="2" cellpadding="2" border="0">
<tr> <td> <a href="
/aems/file/test.html"> </a> </td>
<td> foo </td>
</tr> </table>
</fieldset>
<fieldset class="attachmentTable large"><legend>tax :</legend>
<table cellspacing="2" cellpadding="2" border="0">
<tr> <td> <a href="
/relf/file/test.html">
</a></td>
<td> foo </td>
</tr> </table>
</fieldset>
Usinf XPATH and selenium-webdriver can we get the /aems/file/test.html from the part of the html?
This should probably work for you
UPDATE
Why I chose
containsis because of this