title: ruby cucumber click href in table
body: <p>I am new to ruby as well as cucumber, trying to automate. 
  I need to click href link inside a table (Check1 and Check2). I tried: </p>
  
  <pre><code>@browser.link(:href =&gt; "http://googlenet.com.au").click  
  @browser.table(:href =&gt; "http://googlenet.com.au").click  
  </code></pre>
  
  <p>as well as:   </p>
  
  <pre><code>@browser.find(:linkText =&gt; "Check1").click()   \\{capybara}
  </code></pre>
  
  <p>I am getting unable to locate element error or undefined method find while running.<br>
  How do I get it clicked? If I had to use capybara is there any config needed to be done in env.rb or any other file so as to include capybara gem?</p>
  
  <p>My HTML LOOKS like:</p>
  
  <pre><code>&lt;html webdriver="true"&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body class="background_colour" onload="loadHeader()"&gt;
     &lt;div id="content_wrapper"&gt;
        &lt;h2&gt;&lt;/h2&gt;
        &lt;br&gt;&lt;/br&gt;
        &lt;table class="menuTable"&gt;
        &lt;tbody&gt;
        &lt;tr&gt;
        &lt;td width="5%"&gt;&lt;/td&gt;
        &lt;td width="25%"&gt;
        &lt;strong&gt;&lt;/strong&gt;
        &lt;/td&gt;
        &lt;td width="70%"&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;/tbody&gt;
        &lt;/table&gt;
        &lt;table class="menuTable"&gt;
        &lt;tbody&gt;
        &lt;tr&gt;
        &lt;td width="10%"&gt;&lt;/td&gt;
        &lt;td width="25%"&gt;
        &lt;h3&gt;
        &lt;!-- B:Registration Link[START] Mod… --&gt;
        &lt;span class="black_font"&gt;&lt;/span&gt;
        &lt;a href="https://google.com/channel1_" target="_blank"&gt;Check1&lt;/a&gt;
        &lt;!-- B.Registration Link[START] Mod… --&gt;
        &lt;/h3&gt;
        &lt;/td&gt;
        &lt;td width="65%"&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
        &lt;td width="10%"&gt;&lt;/td&gt;
        &lt;td width="25%"&gt;
        &lt;h3&gt;
        &lt;span class="black_font"&gt;&lt;/span&gt;
        &lt;a href="http://googlenet.com.au" target="_blank"&gt;Check2&lt;/a&gt;
        &lt;/h3&gt;
        &lt;/td&gt;
        &lt;td width="65%"&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;/tbody&gt;
        &lt;/table&gt;
        &lt;table class="menuTable"&gt;
        &lt;tbody&gt;
  </code></pre>