title: How to select the nth html element in a table that has special class?
body: <p>I am using Nightwatch.js to test a website. On this website there is a table which looks like this:</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td class="sorting_1"&gt;...&lt;/td&gt;
      &lt;td class="sorting_2"&gt;...&lt;/td&gt;
      &lt;td class="sorting_3"&gt;...&lt;/td&gt;
      &lt;td class="sorting_3"&gt;...&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Now I want to check if this table contains the correct words. I found out that it is possible to select an element this way:</p>
  
  <pre><code>'td[class="sorting_2"]'
  </code></pre>
  
  <p>I can get the text with this command:</p>
  
  <pre><code>.getText('td[class="sorting_2"]', function(result){
      this.assert.equal(result.value, 'Testbenutzer');
  })
  </code></pre>
  
  <p>But what do I have to do if I want to select one of two equally defined elements like in the list above. The last two elements both have the class <code>sorting_3</code>. How can I get the nth element of the table with a special class.
  I already tried this:</p>
  
  <pre><code>'td:nth-of-type(1)[class="sorting_3"]'
  'td:nth-child(1)[class="sorting_3"]'
  'td[class="sorting_3"]:nth-child(1)'
  'td:nth-child(3)'
  </code></pre>
  
  <p>Nothing of this worked. How can I do it?</p>