I am working on a project where I have to locate a button. I have used XPath for that, but the button's id changes on every refresh, so I am facing a problem withtwith that.. Below is a HTML excerpt. Let me know canhow I can identify that button so that it will not cause an error even if the id changes
<tr>
<td/>
<td>
<div id="LoginButton" style="float: left;">
<table style="width: auto;" id="ext-comp-1032" class="x-btn x-btn-noicon x-btn-over x-btn-focus" cellspacing="0">
<tbody class="x-btn-small x-btn-icon-small-left">
<tr>
<td class="x-btn-tl">
<i> </i>
</td>
<td class="x-btn-tc"/>
<td class="x-btn-tr">
<i> </i>
</td>
</tr>
<tr>
<td class="x-btn-ml">
<i> </i>
</td>
<td class="x-btn-mc">
<em class="" unselectable="on">
<button class=" x-btn-text" id="ext-gen12" type="button">Login</button>
</em>
</td>
<td class="x-btn-mr">
<i> </i>
</td>
</tr>
<tr>
<td class="x-btn-bl">
<i> </i>
</td>
<td class="x-btn-bc"/>
<td class="x-btn-br">
<i> </i>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>