title: How to use XPath preceding-sibling correctly
body: <p>I am writing tests for my site using Selenium IDE and I am having trouble with having selenium click on a button using preceding-sibling</p>
  
  <pre><code>&lt;td&gt;
  &lt;div class="btn-group"&gt;
  &lt;button class="btn btn btn-danger block" title="Warning, Delete" name="delete" type="button"&gt;
  &lt;button class="btn btn btn-default block" title="View History" name="history" type="button"&gt;
  &lt;button class="btn btn btn-default block" title="View Settings" name="settings" type="button"&gt;
  &lt;button class="btn btn btn-default block" name="device" type="button"&gt;
  &lt;span class="glyphicon glyphicon-pencil"/&gt;
   Arcade Reader
  &lt;/button&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>My path</p>
  
  <pre><code>xpath=//button[contains(.,'Arcade Reader')]/../preceding-sibling::button[@name='settings']
  </code></pre>