title: Get all table elements in python using selenium
body: <p>I have a webpage which looks like this:</p>
  
  <pre><code>&lt;table class="data" width="100%" cellpadding="0" cellspacing="0"&gt;
          &lt;tbody&gt;&lt;tr&gt;
              &lt;th&gt;1&lt;/th&gt;
              &lt;th&gt;2&lt;/th&gt;
              &lt;th&gt;3 by&lt;/th&gt;
          &lt;/tr&gt;
                          &lt;tr&gt;                    &lt;td width="10%"&gt;&lt;a href="foo1"&gt;5120432&lt;/a&gt;&lt;/td&gt;
                  &lt;td width="70%"&gt;INTERESTED_SITE1/&lt;/td&gt;
                  &lt;td width="20%"&gt;&lt;a href="foo2"&gt;foo2&lt;/a&gt;&lt;/td&gt;
              &lt;/tr&gt;
                          &lt;tr class="alt"&gt;                    &lt;td width="10%"&gt;&lt;a href="foo1"&gt;5120431&lt;/a&gt;&lt;/td&gt;
                  &lt;td width="70%"&gt;INTERESTED_SITE2&lt;/td&gt;
                  &lt;td width="20%"&gt;&lt;a href="foo2"&gt;foo2&lt;/a&gt;&lt;/td&gt;
              &lt;/tr&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>I want to put somewhere those 2 sites (interested_site1 and interested_site2). I tried doing something like this:</p>
  
  <pre><code>chrome = webdriver.Chrome(chrome_path)
  chrome.get("fooSite")
  time.sleep(.5)
  
  alert = chrome.find_element_by_xpath("/div/table/tbody/tr[2]/td[2]").text
  print (alert)
  </code></pre>
  
  <p>But I can't find the first site. If I can't do this in a for-loop, I don't mind getting every link separately. How can I get to that link?</p>