title: Unable to get table element in website using Selenium
body: <p>The website below has several tables, but my code is not being able to get a specific one (nor any other table).</p>
  
  <p>The code aims to get data from table "Ações em Circulação no Mercado" -> one of the last tables from webpage.</p>
  
  <p>I have tried the code below and some alternatives, but none worked for me:</p>
  
  <pre><code>import pandas as pd
  from selenium import webdriver
  from time import sleep
  
  url = "http://bvmf.bmfbovespa.com.br/cias-Listadas/Empresas-Listadas/BuscaEmpresaListada.aspx?idioma=pt-br"
  Ticker='ITUB4'
  browser = webdriver.Chrome()
  browser.get(url)
  sleep(2) #Wait webpage to load
  browser.find_element_by_xpath(('//*[@id="ctl00_contentPlaceHolderConteudo_BuscaNomeEmpresa1_txtNomeEmpresa_txtNomeEmpresa_text"]')).send_keys(Ticker)
  browser.find_element_by_xpath(('//*[@id="ctl00_contentPlaceHolderConteudo_BuscaNomeEmpresa1_btnBuscar"]')).click();
  sleep(2) #Wait webpage to load
  browser.find_element_by_xpath(('//*[@id="ctl00_contentPlaceHolderConteudo_BuscaNomeEmpresa1_grdEmpresa_ctl01"]/tbody/tr/td[1]/a')).click();
  sleep(5) #Wait webpage to load
  
  #This is not working
  content = browser.find_element_by_css_selector('//div[@id="div1"]')
  
  #This is not working as well
  #browser.find_element_by_xpath('//*[@id="div1"]/div/div/div[1]/table/tbody/tr[1]/td[1]').text
  </code></pre>
  
  <p>The Table and Full HTML can be found here:</p>
  
  <p><a href="https://i.stack.imgur.com/93Fh7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/93Fh7.jpg" alt="Table"></a></p>
  
  <p><a href="https://i.stack.imgur.com/THVCS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/THVCS.jpg" alt="HTML"></a></p>
  
  <p>HTML is:</p>
  
  <pre><code>&lt;div id="div1"&gt;
                  &lt;div&gt;
                      &lt;h3&gt;Ações em Circulação no Mercado&lt;/h3&gt;
                      &lt;div class="table-wrapper"&gt;&lt;div class="scrollable"&gt;&lt;table class="responsive"&gt;
  
                          &lt;thead&gt;
                              &lt;tr&gt;
                                  &lt;th colspan="3" class="text-center"&gt;19/04/2017&lt;/th&gt;
                              &lt;/tr&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;Tipos de Investidores / Ações&lt;/td&gt;
                                  &lt;td class="text-center"&gt;Quantidade&lt;/td&gt;
                                  &lt;td class="text-center"&gt;Percentual&lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;/thead&gt;
  
                              &lt;tbody&gt;&lt;tr&gt;
                                  &lt;td&gt;Pessoas Físicas&lt;/td&gt;
                                  &lt;td class="text-right"&gt;108.853&lt;/td&gt;
                                  &lt;td class="text-right"&gt; - &lt;/td&gt;
                              &lt;/tr&gt;
  
                              &lt;tr&gt;
                                  &lt;td&gt;Pessoas Jurídicas&lt;/td&gt;
                                  &lt;td class="text-right"&gt;11.591&lt;/td&gt;
                                  &lt;td class="text-right"&gt; - &lt;/td&gt;
                              &lt;/tr&gt;
  
                              &lt;tr&gt;
                                  &lt;td&gt;Investidores Institucionais&lt;/td&gt;
                                  &lt;td class="text-right"&gt;1.039&lt;/td&gt;
                                  &lt;td class="text-right"&gt; - &lt;/td&gt;
                              &lt;/tr&gt;
  
                              &lt;tr&gt;
                                  &lt;td&gt;Quantidade de Ações Ordinárias&lt;/td&gt;
                                  &lt;td class="text-right"&gt;272.710.309&lt;/td&gt;
                                  &lt;td class="text-right"&gt;8,21&lt;/td&gt;
                              &lt;/tr&gt;
  
                              &lt;tr&gt;
                                  &lt;td&gt;Quantidade de Ações Preferenciais&lt;/td&gt;
                                  &lt;td class="text-right"&gt;3.141.058.175&lt;/td&gt;
                                  &lt;td class="text-right"&gt;97,23&lt;/td&gt;
                              &lt;/tr&gt;
  
                              &lt;tr&gt;
                                  &lt;td&gt;Total de Ações&lt;/td&gt;
                                  &lt;td class="text-right"&gt;3.413.768.484&lt;/td&gt;
                                  &lt;td class="text-right"&gt;52,11&lt;/td&gt;
                              &lt;/tr&gt;
  
                              &lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="pinned"&gt;&lt;/div&gt;&lt;/div&gt;
                  &lt;/div&gt;
                  &lt;/div&gt;
  </code></pre>