title: Using Xpath to click on link
body: <p>I seem to be having issues clicking through to the link that is in <code>//table/tbody/tr[2]/td[2]</code>.</p>
  
  <p>I have been using the following line of code:</p>
  
  <pre><code>find_element_by_xpath("//table/tbody/tr[2]/td[2]/a[@href]"".click()
  </code></pre>
  
  <p>this is the table I wish to extract the data from </p>
  
  <pre><code> &lt;table border="0" cellspacing="0" cellpadding="0" class="full-calendar"&gt;
      &lt;tr&gt;
          &lt;th width="160"&gt;&amp;nbsp;&lt;/th&gt;
          &lt;th width="105"&gt;&lt;a href="/FreeFields/Calendar.aspx?State=NSW"&gt;NSW&lt;/a&gt;&lt;/th&gt;
          &lt;th width="105"&gt;&lt;a href="/FreeFields/Calendar.aspx?State=VIC"&gt;VIC&lt;/a&gt;&lt;/th&gt;
          &lt;th width="105"&gt;&lt;a href="/FreeFields/Calendar.aspx?State=QLD"&gt;QLD&lt;/a&gt;&lt;/th&gt;
          &lt;th width="105"&gt;&lt;a href="/FreeFields/Calendar.aspx?State=WA"&gt;WA&lt;/a&gt;&lt;/th&gt;
          &lt;th width="105"&gt;&lt;a href="/FreeFields/Calendar.aspx?State=SA"&gt;SA&lt;/a&gt;&lt;/th&gt;
          &lt;th width="105"&gt;&lt;a href="/FreeFields/Calendar.aspx?State=TAS"&gt;TAS&lt;/a&gt;&lt;/th&gt;
          &lt;th width="105"&gt;&lt;a href="/FreeFields/Calendar.aspx?State=ACT"&gt;ACT&lt;/a&gt;&lt;/th&gt;
          &lt;th width="105"&gt;&lt;a href="/FreeFields/Calendar.aspx?State=NT"&gt;NT&lt;/a&gt;&lt;/th&gt;
      &lt;/tr&gt;  
  
  
      &lt;tr class="rows"&gt;
          &lt;td&gt;
              &lt;p&gt;&lt;span&gt;THURSDAY 05 JAN&lt;/span&gt;&lt;/p&gt;
          &lt;/td&gt;
  
                  &lt;td&gt;
                      &lt;p&gt;
  
                              &lt;a href="/FreeFields/Results.aspx?Key=2017Jan05,NSW,Taree"&gt;Taree&lt;/a&gt;&lt;br&gt;
  
                      &lt;/p&gt;
                  &lt;/td&gt;
  </code></pre>
  
  <p>If you could help me to achieve clicking through to</p>
  
  <pre><code>a href="/FreeFields/Results.aspx?Key=2017Jan05,NSW,Taree
  </code></pre>
  
  <p>that would be appreciated!</p>