title: Using watir-webdriver, how can I click a table row?
body: <p>I'm trying to convert my old watir scripts to use watir-webdriver instead, as that will (eventually) support IE9 and Firefox 4. <code>$browser.table_row(:id =&gt; "account_1").click</code> is what I used to click the first row of a table on screen in watir/firewatir, but the API for this was modified in watir-webdriver. Now, the code is this: <code>$browser.table(:class =&gt; "sortable")[0].click</code> which should grab the first row of the table then click it. It seems to be successful, as it continues code execution, but it doesn't actually click the row. </p>
  
  <p>Can someone explain what the right syntax would be in this case?</p>
  
  <p>Here's the source code around the area I want to click:</p>
  
  <pre><code>&lt;table class="sortable"&gt;
  &lt;thead&gt;
      &lt;tr id=""&gt;
          &lt;th&gt; &lt;/th&gt;
          &lt;th class="sort" &gt; Name &lt;/th&gt;
          &lt;th class="sort" &gt; Number &lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr id="account_1" onclick=";$('timer').show();; new Ajax.Request('create_new_account', {asynchronous:false, evalScripts:true, onComplete:function(request){;$('timer').hide();initializeCustomEffects();}})"&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td class="sortTd"&gt;Test Account&lt;/td&gt;
          &lt;td class="sortTd"&gt;1&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p></p>