title: How to select element in previous <TD> in watir?
body: <p>I have a issue with Watir.
  In UI, there are many table like below:</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;
          &lt;select&gt;
              &lt;option value="0"&gt;0&lt;/option&gt;
              &lt;option value="1"&gt;1&lt;/option&gt;
              &lt;option value="2"&gt;2&lt;/option&gt;
              &lt;option value="3"&gt;3&lt;/option&gt;
          &lt;/select&gt;
      &lt;/td&gt;
      &lt;td&gt;
          ABCD
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I need to search if "ABCD" exist in the UI or not, if exist, then select a value like "2" in droplist
  Tried in this way, but didn't work well</p>
  
  <pre><code>puts b.td(:text =&gt; "ABCD").exist?
  puts b.td(:ABCD").parent.row(:index, 0)
  </code></pre>
  
  <p>There is another table like below:</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;
          &lt;select&gt;
              &lt;option value="1"&gt;1&lt;/option&gt;
              &lt;option value="2"&gt;2&lt;/option&gt;
          &lt;/select&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;select&gt;
              &lt;option value="ABCD"&gt;ABCD&lt;/option&gt;
              &lt;option value="EFGH"&gt;EFGH&lt;/option&gt;
              &lt;option value="IJKL"&gt;IJKL&lt;/option&gt;
          &lt;/select&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Same requirement: search if "ABCD" exist in the UI or not, if exist, then select a value like "2" in droplist
  Tried in this way, based on the way you show me, didn't work well</p>
  
  <pre><code>if b.td(:text, "ABCD").present?
      b.td(:text, "ABCD").parent.select_list.select('2')
  end
  </code></pre>