title: xpath or css-selector nth of nth-child or position of last()
body: <p><code>[id*='GwtGFD_'] &gt; option:last-child</code> # CSS-Selector</p>
  <p>and</p>
  <p><code>//*[contains(@id, 'GwtGFD_')]/option[last()]</code> # XPATH</p>
  <p>both return an expected 2 results. I'd like to do something like <code>//*[contains(@id, 'GwtGFD_')]/option[last()][1]</code> and <code>//*[contains(@id, 'GwtGFD_')]/option[last()][2]</code> but <code>[1]</code> returns both elements instead. Same seems to be true for the css-selector equivalent.</p>
  <p>How can I retrieve the first and last, or nth position, of <code>last()</code>?</p>
  <p>The full xpaths for each expected positional [1] and [2] results are as follows:</p>
  <pre><code> /html/body/div[2]/form/div/div[1]/div[2]/div/div[1]/div/div/table[1]/tbody/tr/td/table/tbody/tr[6]/td/table/tbody/tr/td[4]/select[1]/option[37]
   /html/body/div[2]/form/div/div[1]/div[2]/div/div[1]/div/div/table[1]/tbody/tr/td/table/tbody/tr[6]/td/table/tbody/tr/td[4]/select[2]/option[37]
  </code></pre>
  <p>So maybe I just need to get the <code>select[1]</code> and <code>select[2]</code> a different way but I haven't found it. I'd also like to understand why what I'd expect to work above isn't working and how I may be able to retrieve the nth position of the results of <code>last()</code>.</p>