Below is the code I wrote using Selenium IDE. Problem is with the clicking on a button using preceding-sibling
<td>
<div class="btn-group">
<button class="btn btn btn-danger block" title="Warning, Delete" name="delete" type="button">
<button class="btn btn btn-default block" title="View History" name="history" type="button">
<button class="btn btn btn-default block" title="View Settings" name="settings" type="button">
<button class="btn btn btn-default block" name="device" type="button">
<span class="glyphicon glyphicon-pencil"/>
Arcade Reader
</button>
</div>
</td>
My path
xpath=//button[contains(.,'Arcade Reader')]/../preceding-sibling::button[@name='settings']