title: Using XPath to locate on a button within a table
body: <p>I have a table with several columns.  The first column contains unique data, the 5th contains three buttons (Edit, Assignments and Delete).</p>
  
  <p>I would like to use an XPath expression to locate on the edit button for one of the rows by indentifying the row using the unique data from column one (think that made sense).</p>
  
  <p>I have built some expressions which will allow me to locate on the first column and edit button independantly as follows:</p>
  
  <pre><code>//td[text()='Managers'] 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>tr[2]//button[text()='Edit']
  </code></pre>
  
  <p>The closest I can get to doing what I want is:</p>
  
  <pre><code>//td[text()='Managers'] | //tr[2]//button[text()='Edit']
  </code></pre>
  
  <p>...However this will locate on the data/button in column 1 AND 5 at the same time, what I want is just for the button in column 5.</p>
  
  <p>The reason I want to do it this way, is so later I can pass in 'Managers' as a varaible in order to select the row (as its unique and meaningful data), and then press the edit button in a different column on that row.</p>
  
  <p>Hope this makes sense!</p>
  
  <p>Thanks</p>